Files
EasySoft-ZenTaoPMS/db/update12.1.sql
T
liugang d0b5ddb807 * [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
2025-11-24 09:48:10 +08:00

18 lines
595 B
SQL

ALTER TABLE `zt_story` ADD `parent` mediumint NOT NULL DEFAULT '0' AFTER `id`;
CREATE TABLE `zt_relation` (
`id` int(8) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`program` mediumint(8) NOT NULL,
`product` mediumint(8) NOT NULL,
`project` mediumint(8) NOT NULL,
`AType` char(30) NOT NULL,
`AID` mediumint(8) NOT NULL,
`AVersion` char(30) NOT NULL,
`relation` char(30) NOT NULL,
`BType` char(30) NOT NULL,
`BID` mediumint(8) NOT NULL,
`BVersion` char(30) NOT NULL,
`extra` char(30) NOT NULL,
UNIQUE KEY `relation` (`relation`,`AType`,`BType`, `AID`, `BID`)
) ENGINE=MyISAM;