aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 23:05:45 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-06 23:05:45 +0200
commitdd3ec468f65f05c0fbf233a161cffae2698bd3db (patch)
treeaeb767acdb364d89e4b436196e0bc924f1052278 /Zotlabs
parent65dcb39bacc6a7d2376f0994b907853eb80a3361 (diff)
downloadvolse-hubzilla-dd3ec468f65f05c0fbf233a161cffae2698bd3db.tar.gz
volse-hubzilla-dd3ec468f65f05c0fbf233a161cffae2698bd3db.tar.bz2
volse-hubzilla-dd3ec468f65f05c0fbf233a161cffae2698bd3db.zip
fix issue #1281 - hubloc default values
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Update/_1224.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1224.php b/Zotlabs/Update/_1224.php
new file mode 100644
index 000000000..d687afce7
--- /dev/null
+++ b/Zotlabs/Update/_1224.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1224 {
+
+ function run() {
+ q("START TRANSACTION");
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $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");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}