feat: 优化文案模板分组与复制预览
This commit is contained in:
8
sql/copy_template_group.sql
Normal file
8
sql/copy_template_group.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- 文案模板增加分组字段(已有数据库升级脚本)
|
||||
ALTER TABLE `tt_copy_template`
|
||||
ADD COLUMN `template_group` VARCHAR(100) NOT NULL DEFAULT '默认分组' COMMENT '模板分组' AFTER `template_name`;
|
||||
|
||||
-- 兼容历史空数据
|
||||
UPDATE `tt_copy_template`
|
||||
SET `template_group` = '默认分组'
|
||||
WHERE `template_group` IS NULL OR TRIM(`template_group`) = '';
|
||||
Reference in New Issue
Block a user