+ the new db.

This commit is contained in:
wangchunsheng
2010-04-17 06:54:54 +00:00
parent dc9107f966
commit 7202ebdce1
2 changed files with 662 additions and 588 deletions
+3 -5
View File
@@ -13,14 +13,12 @@ ALTER TABLE `zt_task` ADD `deleted` ENUM( '0', '1' ) NOT NULL DEFAULT '0';
ALTER TABLE `zt_testTask` ADD `deleted` ENUM( '0', '1' ) NOT NULL DEFAULT '0';
ALTER TABLE `zt_user` ADD `deleted` ENUM( '0', '1' ) NOT NULL DEFAULT '0';
-- 处理user表。
-- user table.
UPDATE zt_user SET deleted = '1' WHERE STATUS = 'delete';
ALTER TABLE `zt_user` DROP `status`;
INSERT INTO zt_action(`company`, `objecttype`, `objectID`, `actor`, action, `date`, `comment` , `extra`)
SELECT `company`, 'user', `id`, 'system', 'deleted', now( ) , '', 1 FROM zt_user WHERE zt_user.deleted ='1'
INSERT INTO zt_action(`company`, `objecttype`, `objectID`, `actor`, action, `date`, `comment` , `extra`) SELECT `company`, 'user', `id`, 'system', 'deleted', now( ) , '', 1 FROM zt_user WHERE zt_user.deleted ='1';
-- company 字段。
ALTER TABLE `zt_action` ADD `company` MEDIUMINT UNSIGNED NOT NULL AFTER `id` ;
-- company fields.
ALTER TABLE `zt_action` ADD INDEX ( `company` ) ;
ALTER TABLE `zt_bug` ADD `company` MEDIUMINT UNSIGNED NOT NULL AFTER `id` ;
ALTER TABLE `zt_bug` ADD INDEX ( `company` ) ;
+659 -583
View File
File diff suppressed because it is too large Load Diff