Description: 1.7.0~beta1 correction patch
 1.7.0~beta1 enters unstable, so we have to take care about,
 that we downgrade the database again to the state of 1.6.
Author: Sandro Knauß <bugs@sandroknauss.de>
Origin: debian
Last-Update: 2014-09-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: owncloud-client/src/mirall/syncjournaldb.cpp
===================================================================
--- owncloud-client.orig/src/mirall/syncjournaldb.cpp	2014-09-05 21:50:44.528829813 +0200
+++ owncloud-client/src/mirall/syncjournaldb.cpp	2014-09-05 23:12:47.842135971 +0200
@@ -319,6 +319,14 @@
         commitInternal("update database structure");
     }
 
+    if ( columns.indexOf(QLatin1String("remotePerm")) != -1 ) {
+        QSqlQuery query(_db);
+        query.prepare("ALTER TABLE metadata DROP COLUMN fileid VARCHAR(128);");
+        re = query.exec();
+
+        commitInternal("update database structure: downgrade from 1.7.0->1.6.3");
+    }
+
     return re;
 }
 
