diff options
author | friendica <info@friendica.com> | 2013-07-03 04:28:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-03 04:28:36 -0700 |
commit | 429ebabfd98240fe7d69ba81879ee35769af305f (patch) | |
tree | b6408dbc25ca2e2664c4da201c315df6169e30e2 | |
parent | 064237f0cbdbd08635f9c970b3e5b3f644be793d (diff) | |
download | volse-hubzilla-429ebabfd98240fe7d69ba81879ee35769af305f.tar.gz volse-hubzilla-429ebabfd98240fe7d69ba81879ee35769af305f.tar.bz2 volse-hubzilla-429ebabfd98240fe7d69ba81879ee35769af305f.zip |
any questions regarding this checkin will be ignored
-rwxr-xr-x | boot.php | 2 | ||||
-rw-r--r-- | install/database.sql | 17 | ||||
-rw-r--r-- | install/update.php | 22 |
3 files changed, 39 insertions, 2 deletions
@@ -43,7 +43,7 @@ require_once('include/taxonomy.php'); define ( 'RED_PLATFORM', 'Red Matrix' ); define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R'); define ( 'ZOT_REVISION', 1 ); -define ( 'DB_UPDATE_VERSION', 1048 ); +define ( 'DB_UPDATE_VERSION', 1049 ); define ( 'EOL', '<br />' . "\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/install/database.sql b/install/database.sql index 5cb0146f7..59192b753 100644 --- a/install/database.sql +++ b/install/database.sql @@ -599,6 +599,23 @@ CREATE TABLE IF NOT EXISTS `notify` ( KEY `otype` (`otype`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; +CREATE TABLE IF NOT EXISTS `obj` ( + `obj_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `obj_page` char(64) NOT NULL DEFAULT '', + `obj_verb` char(255) NOT NULL DEFAULT '', + `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', + PRIMARY KEY (`obj_id`), + KEY `obj_verb` (`obj_verb`), + KEY `obj_page` (`obj_page`), + KEY `obj_type` (`obj_type`), + KEY `obj_channel` (`obj_channel`), + KEY `obj_obj` (`obj_obj`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + + + CREATE TABLE IF NOT EXISTS `outq` ( `outq_hash` char(255) NOT NULL, `outq_account` int(10) unsigned NOT NULL DEFAULT '0', diff --git a/install/update.php b/install/update.php index ef436c688..22c069d2f 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1048 ); +define( 'UPDATE_VERSION' , 1049 ); /** * @@ -581,3 +581,23 @@ ADD INDEX ( `xprof_age` ) "); return UPDATE_FAILED; } +function update_r1048() { + $r = q("CREATE TABLE IF NOT EXISTS `obj` ( + `obj_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `obj_page` char(64) NOT NULL DEFAULT '', + `obj_verb` char(255) NOT NULL DEFAULT '', + `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', + PRIMARY KEY (`obj_id`), + KEY `obj_verb` (`obj_verb`), + KEY `obj_page` (`obj_page`), + KEY `obj_type` (`obj_type`), + KEY `obj_channel` (`obj_channel`), + KEY `obj_obj` (`obj_obj`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |