diff --git a/db/update20.0.sql b/db/update20.0.sql index cfabffd08d..713d31cdf1 100644 --- a/db/update20.0.sql +++ b/db/update20.0.sql @@ -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` (