diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 4 | ||||
-rw-r--r-- | install/update.php | 12 |
2 files changed, 15 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql index 6be73f193..ac8382162 100644 --- a/install/database.sql +++ b/install/database.sql @@ -592,6 +592,10 @@ CREATE TABLE IF NOT EXISTS `obj` ( `obj_type` int(10) unsigned NOT NULL DEFAULT '0', `obj_obj` char(255) NOT NULL DEFAULT '', `obj_channel` int(10) unsigned NOT NULL DEFAULT '0', + `allow_cid` MEDIUMTEXT NOT NULL DEFAULT '', + `allow_gid` MEDIUMTEXT NOT NULL DEFAULT '', + `deny_cid` MEDIUMTEXT NOT NULL DEFAULT '', + `deny_gid` MEDIUMTEXT NOT NULL DEFAULT '', PRIMARY KEY (`obj_id`), KEY `obj_verb` (`obj_verb`), KEY `obj_page` (`obj_page`), diff --git a/install/update.php b/install/update.php index 8e64413dc..5025222a6 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1088 ); +define( 'UPDATE_VERSION' , 1089 ); /** * @@ -967,3 +967,13 @@ ADD INDEX ( `xprof_hometown` )"); return UPDATE_FAILED; } +function update_r1088() { + $r = q("ALTER TABLE `obj` ADD `allow_cid` MEDIUMTEXT NOT NULL DEFAULT '', +ADD `allow_gid` MEDIUMTEXT NOT NULL DEFAULT '', +ADD `deny_cid` MEDIUMTEXT NOT NULL DEFAULT '', +ADD `deny_gid` MEDIUMTEXT NOT NULL DEFAULT ''"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |