This commit is contained in:
Mario
2022-12-21 17:15:34 +00:00
parent ca5610ebf1
commit 1ba44fc117

29
Zotlabs/Update/_1255.php Normal file
View File

@@ -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;
}
}