[rygel] db: Fix schema creation



commit 6c0e2254697600a52f7ea9042db19864221101c0
Author: Jens Georg <mail jensge org>
Date:   Thu Sep 3 22:53:35 2015 +0200

    db: Fix schema creation
    
    Signed-off-by: Jens Georg <mail jensge org>

 .../rygel-media-export-media-cache-upgrader.vala   |    1 +
 .../rygel-media-export-media-cache.vala            |    2 ++
 2 files changed, 3 insertions(+), 0 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 33d982e..1f84b16 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,6 +73,7 @@ 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 0cb1b88..05ab422 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -882,6 +882,8 @@ 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 ());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]