初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
15
database/sql/2026-08-14/03_cc_wx_user_template_code.sql
Normal file
15
database/sql/2026-08-14/03_cc_wx_user_template_code.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- ============================================================
|
||||
-- cc_wx_user 补 template_code:经销商可绑定专属装修模板(幂等)
|
||||
-- 空字符串 = 跟随品牌默认模板
|
||||
-- ============================================================
|
||||
|
||||
SET @db := DATABASE();
|
||||
SET @exists := (
|
||||
SELECT COUNT(*) FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = @db AND TABLE_NAME = 'cc_wx_user' AND COLUMN_NAME = 'template_code'
|
||||
);
|
||||
SET @sql := IF(@exists = 0,
|
||||
'ALTER TABLE `cc_wx_user` ADD COLUMN `template_code` varchar(50) NOT NULL DEFAULT '''' COMMENT ''经销商专属装修模板 code,空=跟随品牌默认'' AFTER `price_number`',
|
||||
'SELECT ''skip cc_wx_user.template_code'' AS msg'
|
||||
);
|
||||
PREPARE stmt FROM @sql; EXECUTE stmt; DEALLOCATE PREPARE stmt;
|
||||
Reference in New Issue
Block a user