* [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:
+4
-4
@@ -1,10 +1,10 @@
|
||||
ALTER TABLE `zt_task` ADD `estStarted` DATE NOT NULL AFTER `assignedDate` ,
|
||||
ALTER TABLE `zt_task` ADD `estStarted` DATE NOT NULL AFTER `assignedDate`,
|
||||
ADD `realStarted` DATE NOT NULL AFTER `estStarted`;
|
||||
|
||||
ALTER TABLE `zt_config` ADD `module` VARCHAR( 30 ) NOT NULL AFTER `owner` ;
|
||||
ALTER TABLE `zt_config` ADD `module` VARCHAR( 30 ) NOT NULL AFTER `owner`;
|
||||
update zt_config set module = 'common';
|
||||
update zt_config set company = 1 where `key` = 'sn';
|
||||
delete from zt_config where `key` = 'version' and owner = 'system';
|
||||
ALTER TABLE `zt_config` CHANGE `value` `value` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
|
||||
ALTER TABLE `zt_config` CHANGE `value` `value` TEXT NOT NULL;
|
||||
ALTER TABLE `zt_config` ADD UNIQUE `unique` (`company` , `owner` , `module` , `section` , `key`);
|
||||
ALTER TABLE `zt_task` ADD `module` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `project` ;
|
||||
ALTER TABLE `zt_task` ADD `module` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `project`;
|
||||
|
||||
Reference in New Issue
Block a user