|
|
@ -1,7 +1,7 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
$installedVersion=OCP\Config::getAppValue('contacts', 'installed_version'); |
|
|
|
$installedVersion=OCP\Config::getAppValue('contacts', 'installed_version'); |
|
|
|
if (version_compare($installedVersion, '0.2.90', '<')) { |
|
|
|
if (version_compare($installedVersion, '0.2.3', '<')) { |
|
|
|
// First set all address books in-active. |
|
|
|
// First set all address books in-active. |
|
|
|
$stmt = OCP\DB::prepare( 'UPDATE *PREFIX*contacts_addressbooks SET active=0' ); |
|
|
|
$stmt = OCP\DB::prepare( 'UPDATE *PREFIX*contacts_addressbooks SET active=0' ); |
|
|
|
$result = $stmt->execute(array()); |
|
|
|
$result = $stmt->execute(array()); |
|
|
|