aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1221.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Update/_1221.php')
-rw-r--r--Zotlabs/Update/_1221.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1221.php b/Zotlabs/Update/_1221.php
index 252fcaa90..75b400adc 100644
--- a/Zotlabs/Update/_1221.php
+++ b/Zotlabs/Update/_1221.php
@@ -6,13 +6,18 @@ class _1221 {
function run() {
+ q("START TRANSACTION");
+
$r1 = q("ALTER table " . TQUOT . 'groups' . TQUOT . " rename to pgrp ");
$r2 = q("ALTER table " . TQUOT . 'group_member' . TQUOT . " rename to pgrp_member ");
if($r1 && $r2) {
+ q("COMMIT");
return UPDATE_SUCCESS;
}
+
+ q("ROLLBACK");
return UPDATE_FAILED;
}