aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1255.php
diff options
context:
space:
mode:
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;
+
+ }
+
+}