aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1224.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 21:10:52 +0000
committerMario <mario@mariovavti.com>2018-10-06 23:13:01 +0200
commitf85cce714f91c877a86a57d95943d1ff7a22b31c (patch)
treecb602e0d7e158351121e9c1beae917ccd5458963 /Zotlabs/Update/_1224.php
parent2eb93387c257045b746a6fb27d34a00b115158d5 (diff)
downloadvolse-hubzilla-f85cce714f91c877a86a57d95943d1ff7a22b31c.tar.gz
volse-hubzilla-f85cce714f91c877a86a57d95943d1ff7a22b31c.tar.bz2
volse-hubzilla-f85cce714f91c877a86a57d95943d1ff7a22b31c.zip
return success for postgres
(cherry picked from commit 2d9fe72215f0853f9234f57466095ee762253d82)
Diffstat (limited to 'Zotlabs/Update/_1224.php')
-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;
-
}
}