[shotwell/shotwell-0.24] Prevent dropping the index on evey start



commit 831b03e21f7540efcf514b294f80079c38464ecf
Author: Jens Georg <mail jensge org>
Date:   Fri Nov 11 00:32:04 2016 +0100

    Prevent dropping the index on evey start
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/db/PhotoTable.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/db/PhotoTable.vala b/src/db/PhotoTable.vala
index 4ea2790..4304da8 100644
--- a/src/db/PhotoTable.vala
+++ b/src/db/PhotoTable.vala
@@ -169,7 +169,7 @@ public class PhotoTable : DatabaseTable {
             DatabaseTable.warning ("Failed to drop old PhotoTable index", res);
         }
 
-        res = db.prepare_v2 ("CREATE INDEX IF NOT EXISTS PhotoTableMD5Format on PhotoTable(md5, 
file_format)", -1, out stmt);
+        res = db.prepare_v2 ("CREATE INDEX IF NOT EXISTS PhotoTableMD5FormatV2 on PhotoTable(md5, 
file_format)", -1, out stmt);
         assert (res == Sqlite.OK);
         res = stmt.step ();
         if (res != Sqlite.DONE) {


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