From 143a97f832422c1cb31a6670a61ae4c6bfb2e593 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 23 May 2013 13:17:19 +0200 Subject: [PATCH] Make sure all address books are activated on upgrade. Workaround for the regression that address books can't be (de)activated. --- appinfo/update.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/appinfo/update.php b/appinfo/update.php index 84cb7b0d..673ec022 100644 --- a/appinfo/update.php +++ b/appinfo/update.php @@ -1,7 +1,12 @@ =')) { + // Set all address books active as (de)activating went awol at rewrite. + $stmt = OCP\DB::prepare( 'UPDATE `*PREFIX*contacts_addressbooks` SET `active`= 1' ); + $result = $stmt->execute(array()); +} +elseif (version_compare($installedVersion, '0.2.4', '==')) { // First set all address books in-active. $stmt = OCP\DB::prepare( 'UPDATE `*PREFIX*contacts_addressbooks` SET `active`=0' ); $result = $stmt->execute(array());