aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1255.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-21 17:15:34 +0000
committerMario <mario@mariovavti.com>2022-12-21 17:15:34 +0000
commit1ba44fc117656233be82828e708d50cb3dcfc2d9 (patch)
treeaac2000a08c691a4b77ddbdcfe5232d992462c4a /Zotlabs/Update/_1255.php
parentca5610ebf1ba1dc2e1142eebc2b8d34d6bb33162 (diff)
downloadvolse-hubzilla-1ba44fc117656233be82828e708d50cb3dcfc2d9.tar.gz
volse-hubzilla-1ba44fc117656233be82828e708d50cb3dcfc2d9.tar.bz2
volse-hubzilla-1ba44fc117656233be82828e708d50cb3dcfc2d9.zip
update
Diffstat (limited to 'Zotlabs/Update/_1255.php')
-rw-r--r--Zotlabs/Update/_1255.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1255.php b/Zotlabs/Update/_1255.php
new file mode 100644
index 000000000..4f1da1a4a
--- /dev/null
+++ b/Zotlabs/Update/_1255.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace Zotlabs\Update;
+
+class _1255 {
+
+ function run() {
+
+ dbq("START TRANSACTION");
+
+ if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
+ $r = q("ALTER TABLE workerq add workerq_cmd text NOT NULL DEFAULT ''");
+ }
+
+ if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
+ $r = q("ALTER TABLE workerq add workerq_cmd varchar(191) NOT NULL DEFAULT ''");
+ }
+
+ if($r) {
+ dbq("COMMIT");
+ return UPDATE_SUCCESS;
+ }
+
+ q("ROLLBACK");
+ return UPDATE_FAILED;
+
+ }
+
+}