IIntroduce pre update function for PR 8927
This commit is contained in:
parent
fa80bee0e2
commit
cfd8190872
1 changed files with 9 additions and 0 deletions
|
@ -562,3 +562,12 @@ function update_1357()
|
||||||
|
|
||||||
return Update::SUCCESS;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue