Revert "* [misc] update standard sql."

This reverts commit 5a05ca0b6f.
This commit is contained in:
liugang
2024-08-19 09:20:36 +08:00
committed by 孙广明
parent 65c138df5d
commit 894e983c7a
+1 -1
View File
@@ -1674,7 +1674,7 @@ CREATE TABLE `zt_im_message` (
`data` text DEFAULT NULL,
`deleted` enum('0','1') NOT NULL DEFAULT '0',
`legacy` tinyint(1) NOT NULL DEFAULT 0,
`uniqueIndex` int(11) NOT NULL DEFAULT 0,
`uniqueIndex` int(11) GENERATED ALWAYS AS (case when `legacy` = 1 then NULL when `cgid` = 'notification' then NULL else `index` end) STORED,
PRIMARY KEY (`id`),
UNIQUE KEY `uniqueIndexInChat` (`cgid`,`uniqueIndex`),
KEY `mgid` (`gid`),