diff options
author | friendica <info@friendica.com> | 2013-01-02 23:07:46 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-02 23:07:46 -0800 |
commit | 4c21abe533c6a5bcd87b453760c551fed109a79a (patch) | |
tree | 9d7cb530441fe6a3678c77244b8382066562743e /install | |
parent | 32a97d5065efbcc6897ef7598343c6973114fff4 (diff) | |
download | volse-hubzilla-4c21abe533c6a5bcd87b453760c551fed109a79a.tar.gz volse-hubzilla-4c21abe533c6a5bcd87b453760c551fed109a79a.tar.bz2 volse-hubzilla-4c21abe533c6a5bcd87b453760c551fed109a79a.zip |
verify table needs auto_increment flag
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 2 | ||||
-rw-r--r-- | install/update.php | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql index 5a17346e1..a4d885541 100644 --- a/install/database.sql +++ b/install/database.sql @@ -805,7 +805,7 @@ CREATE TABLE IF NOT EXISTS `tokens` ( ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `verify` ( - `id` int(10) unsigned NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `channel` int(10) unsigned NOT NULL DEFAULT '0', `type` char(32) NOT NULL DEFAULT '', `token` char(255) NOT NULL DEFAULT '', diff --git a/install/update.php b/install/update.php index 549ae63ed..cff3115a2 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1014 ); +define( 'UPDATE_VERSION' , 1015 ); /** * @@ -211,3 +211,11 @@ function update_r1013() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1014() { + $r = q("ALTER TABLE `verify` CHANGE `id` `id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT"); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |