diff options
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/update.php b/update.php index 80761cce4..3d7b31813 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1085 ); +define( 'UPDATE_VERSION' , 1086 ); /** * @@ -704,10 +704,20 @@ function update_1083() { `cmd` CHAR( 32 ) NOT NULL , `item` INT NOT NULL , `contact` INT NOT NULL - ) ENGINE = MYISAM ;"); + ) ENGINE = MYISAM "); } function update_1084() { q("ALTER TABLE `contact` ADD `attag` CHAR( 255 ) NOT NULL AFTER `nick` "); } + +function update_1085() { + q("CREATE TABLE IF NOT EXISTS `search` ( + `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , + `uid` INT NOT NULL , + `term` CHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + INDEX ( `uid` ), + INDEX ( `term` ) + ) ENGINE = MYISAM "); +} |