Files
FullAutoWaterCheck/db/rollback_normaltemperature_split_columns.sql
GukSang.Jin 6f2a810e00 优化
2026-02-04 09:58:56 +08:00

24 lines
775 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- =====================================================
-- 数据库回滚脚本normaltemperature表移除联络单号和件号字段
-- 创建时间2026-02-04
-- 说明:如果升级出现问题,使用此脚本回滚
-- =====================================================
USE fullautowaterpressure;
-- 1. 删除索引
DROP INDEX IF EXISTS `idx_contact_number` ON `normaltemperature`;
DROP INDEX IF EXISTS `idx_item_number` ON `normaltemperature`;
-- 2. 删除新增字段
ALTER TABLE `normaltemperature`
DROP COLUMN IF EXISTS `ContactNumber`,
DROP COLUMN IF EXISTS `ItemNumber`;
-- 3. 验证回滚
DESCRIBE normaltemperature;
-- =====================================================
-- 回滚完成
-- =====================================================