二期内容提交
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- 业务块4增量迁移:既有二期库补齐异常放行关口查询索引。
|
||||
-- 可重复执行;新库仍先执行 phase2-inbound-schema.sql。
|
||||
USE baiyue_firstleg;
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
SET @ddl = IF(
|
||||
EXISTS(SELECT 1 FROM information_schema.statistics
|
||||
WHERE table_schema = DATABASE() AND table_name = 'fl_measure_review_record'
|
||||
AND index_name = 'idx_review_exception_release'),
|
||||
'SELECT 1',
|
||||
'ALTER TABLE fl_measure_review_record ADD INDEX idx_review_exception_release (tenant_id, inbound_id, exception_release, reviewed_at)'
|
||||
);
|
||||
PREPARE stmt FROM @ddl; EXECUTE stmt; DEALLOCATE PREPARE stmt;
|
||||
Reference in New Issue
Block a user