* Add primary key for zt_team.

This commit is contained in:
daitingting
2018-03-29 09:43:53 +08:00
parent c58aa3f02f
commit 8448dedf53
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
ALTER TABLE `zt_team` DROP PRIMARY KEY,
ADD PRIMARY KEY (`root`,`type`,`account`);
+2 -1
View File
@@ -655,7 +655,8 @@ CREATE TABLE IF NOT EXISTS `zt_team` (
`estimate` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0',
`consumed` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0',
`left` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0',
`order` TINYINT(3) NOT NULL DEFAULT '0'
`order` TINYINT(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`root`,`type`,`account`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_testreport`;
CREATE TABLE IF NOT EXISTS `zt_testreport` (