[Pkg-owncloud-commits] [owncloud-client] 03/03: Added patch to downgrade db changes from 1.70->1.6.3
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Sep 5 21:18:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch sid
in repository owncloud-client.
commit 62e59b5cb97a03943525f0a7e0c0bbc8b3941587
Author: Sandro Knauß <bugs at sandroknauss.de>
Date: Fri Sep 5 23:18:43 2014 +0200
Added patch to downgrade db changes from 1.70->1.6.3
---
debian/patches/0004-downgrade-db | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 28 insertions(+)
diff --git a/debian/patches/0004-downgrade-db b/debian/patches/0004-downgrade-db
new file mode 100644
index 0000000..ae4bb5d
--- /dev/null
+++ b/debian/patches/0004-downgrade-db
@@ -0,0 +1,27 @@
+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 at 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;
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index 07af47c..d7de1e6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
0001-disable-updatecheck.patch
0002-debian_version.patch
0003-skip_tests_freebsd.patch
+0004-downgrade-db
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list