回溯点:保存注册预约客户流程修复进度
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
SET @column_exists = (
|
||||
SELECT COUNT(1)
|
||||
FROM information_schema.columns
|
||||
WHERE table_schema = DATABASE()
|
||||
AND table_name = 't_shop'
|
||||
AND column_name = 'appointment_business_hours'
|
||||
);
|
||||
SET @migration_sql = IF(
|
||||
@column_exists = 0,
|
||||
'ALTER TABLE t_shop ADD COLUMN appointment_business_hours VARCHAR(20) NULL COMMENT ''预约运营营业时间'' AFTER business_hours',
|
||||
'SELECT 1'
|
||||
);
|
||||
PREPARE migration_statement FROM @migration_sql;
|
||||
EXECUTE migration_statement;
|
||||
DEALLOCATE PREPARE migration_statement;
|
||||
|
||||
SET @column_exists = (
|
||||
SELECT COUNT(1)
|
||||
FROM information_schema.columns
|
||||
WHERE table_schema = DATABASE()
|
||||
AND table_name = 't_shop'
|
||||
AND column_name = 'default_appointment_duration_minutes'
|
||||
);
|
||||
SET @migration_sql = IF(
|
||||
@column_exists = 0,
|
||||
'ALTER TABLE t_shop ADD COLUMN default_appointment_duration_minutes INT NOT NULL DEFAULT 60 COMMENT ''默认预约服务时长(分钟)'' AFTER business_hours',
|
||||
'SELECT 1'
|
||||
);
|
||||
PREPARE migration_statement FROM @migration_sql;
|
||||
EXECUTE migration_statement;
|
||||
DEALLOCATE PREPARE migration_statement;
|
||||
|
||||
UPDATE t_shop
|
||||
SET default_appointment_duration_minutes = 60
|
||||
WHERE default_appointment_duration_minutes IS NULL OR default_appointment_duration_minutes <= 0;
|
||||
Reference in New Issue
Block a user