+ the new db.
This commit is contained in:
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user