theme_settings structure change
This commit is contained in:
parent
830d4ae45c
commit
bb67062cd5
@ -64,6 +64,7 @@
|
|||||||
// Add `custom_fields` field
|
// Add `custom_fields` field
|
||||||
query(sprintf("ALTER TABLE `posts_%s` ADD `embed` TEXT NULL", $_board['uri'])) or error(db_error());
|
query(sprintf("ALTER TABLE `posts_%s` ADD `embed` TEXT NULL", $_board['uri'])) or error(db_error());
|
||||||
}
|
}
|
||||||
|
case 'v0.9.2-dev-3': // v0.9.2-dev-3 == v0.9.2
|
||||||
case 'v0.9.2':
|
case 'v0.9.2':
|
||||||
// Upgrade to v0.9.3-dev-1
|
// Upgrade to v0.9.3-dev-1
|
||||||
|
|
||||||
@ -71,6 +72,7 @@
|
|||||||
query("TRUNCATE TABLE `theme_settings`") or error(db_error());
|
query("TRUNCATE TABLE `theme_settings`") or error(db_error());
|
||||||
query("ALTER TABLE `theme_settings` ADD `theme` VARCHAR( 40 ) NOT NULL FIRST") or error(db_error());
|
query("ALTER TABLE `theme_settings` ADD `theme` VARCHAR( 40 ) NOT NULL FIRST") or error(db_error());
|
||||||
query("ALTER TABLE `theme_settings` CHANGE `name` `name` VARCHAR( 40 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL") or error(db_error());
|
query("ALTER TABLE `theme_settings` CHANGE `name` `name` VARCHAR( 40 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL") or error(db_error());
|
||||||
|
query("ALTER TABLE `theme_settings` DROP INDEX `name`") or error(db_error());
|
||||||
|
|
||||||
// Update version number
|
// Update version number
|
||||||
file_write($config['has_installed'], VERSION);
|
file_write($config['has_installed'], VERSION);
|
||||||
|
@ -258,8 +258,7 @@ CREATE TABLE IF NOT EXISTS `robot` (
|
|||||||
CREATE TABLE IF NOT EXISTS `theme_settings` (
|
CREATE TABLE IF NOT EXISTS `theme_settings` (
|
||||||
`theme` varchar(40) NOT NULL,
|
`theme` varchar(40) NOT NULL,
|
||||||
`name` varchar(40) DEFAULT NULL,
|
`name` varchar(40) DEFAULT NULL,
|
||||||
`value` text,
|
`value` text
|
||||||
UNIQUE KEY `name` (`name`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user