aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 23:10:52 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-06 23:10:52 +0200
commit2d9fe72215f0853f9234f57466095ee762253d82 (patch)
tree8e65acd69ab6a958cc062259a24ca2744097458e /Zotlabs/Update
parentdd3ec468f65f05c0fbf233a161cffae2698bd3db (diff)
downloadvolse-hubzilla-2d9fe72215f0853f9234f57466095ee762253d82.tar.gz
volse-hubzilla-2d9fe72215f0853f9234f57466095ee762253d82.tar.bz2
volse-hubzilla-2d9fe72215f0853f9234f57466095ee762253d82.zip
return success for postgres
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r--Zotlabs/Update/_1224.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/Zotlabs/Update/_1224.php b/Zotlabs/Update/_1224.php
index d687afce7..d160cea5d 100644
--- a/Zotlabs/Update/_1224.php
+++ b/Zotlabs/Update/_1224.php
@@ -5,21 +5,24 @@ namespace Zotlabs\Update;
class _1224 {
function run() {
- q("START TRANSACTION");
-
if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ q("START TRANSACTION");
+
$r1 = q("ALTER TABLE hubloc ALTER hubloc_id_url SET DEFAULT ''");
$r2 = q("ALTER TABLE hubloc ALTER hubloc_site_id SET DEFAULT ''");
- }
- if($r1 && $r2) {
- q("COMMIT");
+ if($r1 && $r2) {
+ q("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+ }
+ if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
return UPDATE_SUCCESS;
}
- q("ROLLBACK");
- return UPDATE_FAILED;
-
}
}