sforkowany z mirror/friendica
Merge pull request #9012 from annando/pre-update-1358
Introduce pre update function for PR 89272022.09-rc
commit
2d25d5975a
|
@ -562,3 +562,12 @@ function update_1357()
|
|||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function pre_update_1358()
|
||||
{
|
||||
if (!DBA::e("DELETE FROM `contact-relation` WHERE NOT `relation-cid` IN (SELECT `id` FROM `contact`) OR NOT `cid` IN (SELECT `id` FROM `contact`)")) {
|
||||
return Update::FAILED;
|
||||
}
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue