* [refac] Remove explicit charset and collation declarations from SQL files

- Remove DEFAULT CHARSET declarations from all SQL table definitions
- Strip COLLATE clauses from field definitions across all database scripts
- Simplify ENGINE declarations by removing redundant charset specifications
- Standardize SQL statement formatting for improved database compatibility
- Affects all database update scripts from version 0.1 to 21.7.6
This commit is contained in:
liugang
2025-11-24 09:48:10 +08:00
parent 31cc4f28d6
commit d0b5ddb807
277 changed files with 19457 additions and 19528 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS `zt_storyestimate` (
`openedBy` varchar(30) NOT NULL,
`openedDate` datetime NOT NULL,
UNIQUE KEY `story` (`story`,`round`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `zt_storyreview` (
`story` mediumint(9) NOT NULL,
`version` smallint(6) NOT NULL,
@@ -16,7 +16,7 @@ CREATE TABLE IF NOT EXISTS `zt_storyreview` (
`result` varchar(30) NOT NULL,
`reviewDate` datetime NOT NULL,
UNIQUE KEY `story` (`story`,`version`,`reviewer`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) ENGINE=MyISAM;
ALTER TABLE `zt_story` MODIFY COLUMN `reviewedDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
REPLACE INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'story', '', 'reviewRules', 'allpass');