diff options
author | Mario <mario@mariovavti.com> | 2022-12-21 17:15:34 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-12-21 17:15:34 +0000 |
commit | 1ba44fc117656233be82828e708d50cb3dcfc2d9 (patch) | |
tree | aac2000a08c691a4b77ddbdcfe5232d992462c4a /Zotlabs | |
parent | ca5610ebf1ba1dc2e1142eebc2b8d34d6bb33162 (diff) | |
download | volse-hubzilla-1ba44fc117656233be82828e708d50cb3dcfc2d9.tar.gz volse-hubzilla-1ba44fc117656233be82828e708d50cb3dcfc2d9.tar.bz2 volse-hubzilla-1ba44fc117656233be82828e708d50cb3dcfc2d9.zip |
update
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Update/_1255.php | 29 |
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; + + } + +} |