mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Upgrade script for new kew
This commit is contained in:
parent
7b02357e23
commit
27ee4d320c
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
// Installation/upgrade file
|
||||
define('VERSION', 'v0.9.6-dev-6');
|
||||
define('VERSION', 'v0.9.6-dev-7');
|
||||
|
||||
require 'inc/functions.php';
|
||||
|
||||
@ -222,6 +222,11 @@ if (file_exists($config['has_installed'])) {
|
||||
foreach ($boards as $board) {
|
||||
query(sprintf("ALTER TABLE `posts_%s` CHANGE `id` `id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT", $board['uri'])) or error(db_error());
|
||||
}
|
||||
case 'v0.9.6-dev-6':
|
||||
foreach ($boards as &$_board) {
|
||||
query(sprintf("CREATE INDEX `thread_id` ON `posts_%s` (`thread`, `id`)", $_board['uri'])) or error(db_error());
|
||||
query(sprintf("ALTER TABLE `posts_%s` DROP INDEX `thread`", $_board['uri'])) or error(db_error());
|
||||
}
|
||||
case false:
|
||||
// Update version number
|
||||
file_write($config['has_installed'], VERSION);
|
||||
|
Loading…
Reference in New Issue
Block a user