add app_options field
This commit is contained in:
22
Zotlabs/Update/_1217.php
Normal file
22
Zotlabs/Update/_1217.php
Normal 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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user