mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 18:47:20 +01:00
upgrading bug past 0.9.4-dev-2 (license change)
This commit is contained in:
parent
69dff1bb71
commit
0673fc1cc6
29
install.php
29
install.php
@ -119,20 +119,20 @@
|
|||||||
}
|
}
|
||||||
case 'v0.9.3-dev-10':
|
case 'v0.9.3-dev-10':
|
||||||
case 'v0.9.3':
|
case 'v0.9.3':
|
||||||
query("ALTER TABLE `bans` DROP INDEX `id`");
|
query("ALTER TABLE `bans` DROP INDEX `id`") or error(db_error());
|
||||||
query("ALTER TABLE `pms` DROP INDEX `id`");
|
query("ALTER TABLE `pms` DROP INDEX `id`") or error(db_error());
|
||||||
query("ALTER TABLE `boards` DROP PRIMARY KEY");
|
query("ALTER TABLE `boards` DROP PRIMARY KEY") or error(db_error());
|
||||||
query("ALTER TABLE `reports` DROP INDEX `id`");
|
query("ALTER TABLE `reports` DROP INDEX `id`") or error(db_error());
|
||||||
query("ALTER TABLE `boards` DROP INDEX `uri`");
|
query("ALTER TABLE `boards` DROP INDEX `uri`") or error(db_error());
|
||||||
|
|
||||||
query("ALTER IGNORE TABLE `robot` ADD PRIMARY KEY (`hash`)");
|
query("ALTER IGNORE TABLE `robot` ADD PRIMARY KEY (`hash`)") or error(db_error());
|
||||||
query("ALTER TABLE `bans` ADD FULLTEXT (`ip`)");
|
query("ALTER TABLE `bans` ADD FULLTEXT (`ip`)") or error(db_error());
|
||||||
query("ALTER TABLE `ip_notes` ADD INDEX (`ip`)");
|
query("ALTER TABLE `ip_notes` ADD INDEX (`ip`)") or error(db_error());
|
||||||
query("ALTER TABLE `modlogs` ADD INDEX (`time`)");
|
query("ALTER TABLE `modlogs` ADD INDEX (`time`)") or error(db_error());
|
||||||
query("ALTER TABLE `boards` ADD PRIMARY KEY(`uri`)");
|
query("ALTER TABLE `boards` ADD PRIMARY KEY(`uri`)") or error(db_error());
|
||||||
query("ALTER TABLE `mutes` ADD INDEX (`ip`)");
|
query("ALTER TABLE `mutes` ADD INDEX (`ip`)") or error(db_error());
|
||||||
query("ALTER TABLE `news` ADD INDEX (`time`)");
|
query("ALTER TABLE `news` ADD INDEX (`time`)") or error(db_error());
|
||||||
query("ALTER TABLE `theme_settings` ADD INDEX (`theme`)");
|
query("ALTER TABLE `theme_settings` ADD INDEX (`theme`)") or error(db_error());
|
||||||
case 'v0.9.4-dev-1':
|
case 'v0.9.4-dev-1':
|
||||||
foreach($boards as &$board) {
|
foreach($boards as &$board) {
|
||||||
query(sprintf("ALTER TABLE `posts_%s` ADD `sage` INT( 1 ) NOT NULL AFTER `locked`", $board['uri'])) or error(db_error());
|
query(sprintf("ALTER TABLE `posts_%s` ADD `sage` INT( 1 ) NOT NULL AFTER `locked`", $board['uri'])) or error(db_error());
|
||||||
@ -145,6 +145,9 @@
|
|||||||
<p style="text-align:center">
|
<p style="text-align:center">
|
||||||
<a href="?confirm=1">I have read and understood the agreement. Proceed to upgrading.</a>
|
<a href="?confirm=1">I have read and understood the agreement. Proceed to upgrading.</a>
|
||||||
</p>';
|
</p>';
|
||||||
|
|
||||||
|
file_write($config['has_installed'], 'v0.9.4-dev-2');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'v0.9.4-dev-3':
|
case 'v0.9.4-dev-3':
|
||||||
|
Loading…
Reference in New Issue
Block a user