add app_options field

This commit is contained in:
zotlabs
2018-08-02 22:49:30 -07:00
parent c806279fa9
commit d908f53607
7 changed files with 38 additions and 12 deletions

22
Zotlabs/Update/_1217.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace Zotlabs\Update;
class _1217 {
function run() {
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
$r = q("ALTER TABLE app ADD app_options smallint NOT NULL DEFAULT '0' ");
}
else {
$r = q("ALTER TABLE app ADD app_options int(11) NOT NULL DEFAULT 0 ");
}
if($r) {
return UPDATE_SUCCESS;
}
return UPDATE_FAILED;
}
}