diff options
author | friendica <info@friendica.com> | 2013-02-18 16:04:01 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-18 16:04:01 -0800 |
commit | 5914ebbfe8687abd91be28490d3abb50add96400 (patch) | |
tree | c54df9f5f7bf9d068ff2e85245f392dbfbae3425 /install | |
parent | cf2bcfdd52d5b17ddb2dc264f3543fc4dfa3034f (diff) | |
download | volse-hubzilla-5914ebbfe8687abd91be28490d3abb50add96400.tar.gz volse-hubzilla-5914ebbfe8687abd91be28490d3abb50add96400.tar.bz2 volse-hubzilla-5914ebbfe8687abd91be28490d3abb50add96400.zip |
reverse the cyclic conundrum, and a minor db update of no consequence
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 17 | ||||
-rw-r--r-- | install/update.php | 24 |
2 files changed, 40 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql index 7fd200017..3dcbb7be0 100644 --- a/install/database.sql +++ b/install/database.sql @@ -440,6 +440,23 @@ CREATE TABLE IF NOT EXISTS `intro` ( KEY `contact-id` (`contact-id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; +CREATE TABLE IF NOT EXISTS `issue` ( + `issue_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `issue_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `issue_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `issue_assigned` char(255) NOT NULL, + `issue_priority` int(11) NOT NULL, + `issue_status` int(11) NOT NULL, + `issue_component` char(255) NOT NULL, + PRIMARY KEY (`issue_id`), + KEY `issue_created` (`issue_created`), + KEY `issue_updated` (`issue_updated`), + KEY `issue_assigned` (`issue_assigned`), + KEY `issue_priority` (`issue_priority`), + KEY `issue_status` (`issue_status`), + KEY `issue_component` (`issue_component`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE IF NOT EXISTS `item` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uri` char(255) CHARACTER SET ascii NOT NULL DEFAULT '', diff --git a/install/update.php b/install/update.php index 290b80cd1..26cd7a173 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1030 ); +define( 'UPDATE_VERSION' , 1031 ); /** * @@ -365,3 +365,25 @@ ADD INDEX ( `channel_deleted` ) "); return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1030() { + $r = q("CREATE TABLE IF NOT EXISTS`issue` ( +`issue_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , +`issue_created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', +`issue_updated` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', +`issue_assigned` CHAR( 255 ) NOT NULL , +`issue_priority` INT NOT NULL , +`issue_status` INT NOT NULL , +`issue_component` CHAR( 255 ) NOT NULL, +KEY `issue_created` (`issue_created`), +KEY `issue_updated` (`issue_updated`), +KEY `issue_assigned` (`issue_assigned`), +KEY `issue_priority` ('issue_priority`), +KEY `issue_status` (`issue_status`), +KEY `issue_component` (`issue_component`) +) ENGINE = MYISAM "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |