summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2015-09-06 12:40:22 +0200
committerJens Georg <mail@jensge.org>2015-09-06 12:41:11 +0200
commitd22aaa745eb3e9a24b30e37b5d2fd32659425fcb (patch)
tree7c79762a92f26304b75b07787cebcbd95313fdfd
parent6c0e2254697600a52f7ea9042db19864221101c0 (diff)
downloadrygel-d22aaa745eb3e9a24b30e37b5d2fd32659425fcb.tar.gz
Revert "db: Fix schema creation"
These changes were unnecessary and cause the cache not to be created properly. This reverts commit 6c0e2254697600a52f7ea9042db19864221101c0.
-rw-r--r--src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala1
-rw-r--r--src/plugins/media-export/rygel-media-export-media-cache.vala2
2 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala b/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala
index 1f84b16a..33d982e2 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache-upgrader.vala
@@ -73,7 +73,6 @@ internal class Rygel.MediaExport.MediaCacheUpgrader {
public void ensure_indices () {
try {
this.database.exec (this.sql.make (SQLString.INDEX_COMMON));
- this.database.exec (this.sql.make (SQLString.CREATE_BLACKLIST_INDEX));
this.database.analyze ();
} catch (Error error) {
warning (_("Failed to create indices: %s"),
diff --git a/src/plugins/media-export/rygel-media-export-media-cache.vala b/src/plugins/media-export/rygel-media-export-media-cache.vala
index 05ab4220..0cb1b881 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -882,8 +882,6 @@ public class Rygel.MediaExport.MediaCache : Object {
db.exec (this.sql.make (SQLString.INDEX_COMMON));
db.exec (this.sql.make (SQLString.TRIGGER_CLOSURE));
db.exec (this.sql.make (SQLString.TRIGGER_REFERENCE));
- db.exec (this.sql.make (SQLString.CREATE_BLACKLIST_TABLE));
- db.exec (this.sql.make (SQLString.CREATE_BLACKLIST_INDEX));
db.commit ();
db.analyze ();
this.save_reset_token (GUPnP.get_uuid ());