reverse the cyclic conundrum, and a minor db update of no consequence

This commit is contained in:
friendica
2013-02-18 16:04:01 -08:00
parent cf2bcfdd52
commit 5914ebbfe8
3 changed files with 42 additions and 2 deletions

View File

@@ -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;
}