diff options
author | zotlabs <mike@macgirvin.com> | 2018-08-02 22:49:30 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-08-02 22:49:30 -0700 |
commit | d908f53607512b8bfa3fbf65cb6fc9623fab5c63 (patch) | |
tree | 245fcc2e40ec90568b7d3db08d6478db971874fa /Zotlabs/Update | |
parent | c806279fa97aa6880e1e0542be00937406e79d27 (diff) | |
download | volse-hubzilla-d908f53607512b8bfa3fbf65cb6fc9623fab5c63.tar.gz volse-hubzilla-d908f53607512b8bfa3fbf65cb6fc9623fab5c63.tar.bz2 volse-hubzilla-d908f53607512b8bfa3fbf65cb6fc9623fab5c63.zip |
add app_options field
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r-- | Zotlabs/Update/_1217.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1217.php b/Zotlabs/Update/_1217.php new file mode 100644 index 000000000..15d2d06b3 --- /dev/null +++ b/Zotlabs/Update/_1217.php @@ -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; + } +} + |