allow objects to have permissions
This commit is contained in:
parent
1d0fddd39c
commit
aacd3164fa
2
boot.php
2
boot.php
@ -46,7 +46,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' );
|
|||||||
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||||
define ( 'ZOT_REVISION', 1 );
|
define ( 'ZOT_REVISION', 1 );
|
||||||
|
|
||||||
define ( 'DB_UPDATE_VERSION', 1088 );
|
define ( 'DB_UPDATE_VERSION', 1089 );
|
||||||
|
|
||||||
define ( 'EOL', '<br />' . "\r\n" );
|
define ( 'EOL', '<br />' . "\r\n" );
|
||||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||||
|
@ -592,6 +592,10 @@ CREATE TABLE IF NOT EXISTS `obj` (
|
|||||||
`obj_type` int(10) unsigned NOT NULL DEFAULT '0',
|
`obj_type` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
`obj_obj` char(255) NOT NULL DEFAULT '',
|
`obj_obj` char(255) NOT NULL DEFAULT '',
|
||||||
`obj_channel` int(10) unsigned NOT NULL DEFAULT '0',
|
`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`),
|
PRIMARY KEY (`obj_id`),
|
||||||
KEY `obj_verb` (`obj_verb`),
|
KEY `obj_verb` (`obj_verb`),
|
||||||
KEY `obj_page` (`obj_page`),
|
KEY `obj_page` (`obj_page`),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( 'UPDATE_VERSION' , 1088 );
|
define( 'UPDATE_VERSION' , 1089 );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -967,3 +967,13 @@ ADD INDEX ( `xprof_hometown` )");
|
|||||||
return UPDATE_FAILED;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user