mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-28 10:24:11 +01:00
Remove old properties from deleted contacts, which were already deleted but readded
This commit is contained in:
parent
5947a27884
commit
c182ef51dc
@ -42,3 +42,11 @@ if (version_compare($installedVersion, '0.3.0.14', '==')) {
|
||||
$stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*contacts_ocu_cards_properties`');
|
||||
$result = $stmt->execute(array());
|
||||
}
|
||||
|
||||
if(version_compare($installedVersion, '0.3.0.18', '<')){
|
||||
$stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*contacts_cards_properties`
|
||||
WHERE NOT EXISTS(SELECT NULL
|
||||
FROM `*PREFIX*contacts_cards`
|
||||
WHERE `*PREFIX*contacts_cards`.id = `*PREFIX*contacts_cards_properties`.contactid)');
|
||||
$result = $stmt->execute(array());
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
0.3.0.17
|
||||
0.3.0.18
|
||||
|
Loading…
Reference in New Issue
Block a user