* [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
+4 -4
View File
@@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS `zt_build` (
`desc` char(255) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) ENGINE=MyISAM;
-- 20100115: 重新修改release的结构。
DROP TABLE IF EXISTS `zt_release`;
CREATE TABLE IF NOT EXISTS `zt_release` (
@@ -24,11 +24,11 @@ CREATE TABLE IF NOT EXISTS `zt_release` (
`desc` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
) ENGINE=MyISAM;
-- 20100115: fix bug 14
ALTER TABLE `zt_productPlan` CHANGE `title` `title` VARCHAR( 90 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ,
CHANGE `desc` `desc` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE `zt_productPlan` CHANGE `title` `title` VARCHAR( 90 ) NOT NULL,
CHANGE `desc` `desc` VARCHAR( 255 ) NOT NULL;
-- 20100125 user表增加status字段。
ALTER TABLE `zt_user` ADD `status` VARCHAR( 30 ) NOT NULL DEFAULT 'active',