+ db: add public field to the zt_usercontact table and process history data.

This commit is contained in:
liugang
2023-07-08 10:05:52 +08:00
parent fb6504fdd6
commit b04afd46ff
+3
View File
@@ -29,6 +29,9 @@ ALTER TABLE `zt_bug` CHANGE `linkBug` `relatedBug` varchar(255) NOT NULL DEFAULT
ALTER TABLE `zt_product` ADD COLUMN `groups` text NULL AFTER `acl`;
ALTER TABLE `zt_usercontact` ADD `public` tinyint(1) NOT NULL DEFAULT 0;
UPDATE `zt_usercontact` AS t1, `zt_config` AS t2 SET t1.public = 1 WHERE t2.module = 'my' AND t2.section = 'global' AND t2.key = 'globalContacts' AND FIND_IN_SET(t1.id, t2.value); -- Change it for compatible with dameng.
DELETE FROM `zt_config` WHERE `module` = 'my' AND `section` = 'global' AND `key` = 'globalContacts';
-- DROP TABLE IF EXISTS `zt_space`;
CREATE TABLE `zt_space` (