update r1191: return update_success if table principals exists otherwise proceed with creating cdav tables.

This commit is contained in:
Mario Vavti 2017-07-10 14:28:50 +02:00
parent 8dcdcd55e5
commit c47439fca4

View File

@ -2548,6 +2548,13 @@ function update_r1190() {
}
function update_r1191() {
$r = q("SELECT 1 FROM principals LIMIT 1");
if($r !== false) {
return UPDATE_SUCCESS;
}
else {
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
$r1 = q("CREATE TABLE addressbooks (
id SERIAL NOT NULL,
@ -2956,3 +2963,6 @@ function update_r1191() {
return UPDATE_FAILED;
}
}
}