Files
smart_grid_iot/database/migrations/20261008_building_floordown_count.sql

5 lines
306 B
SQL
Raw Permalink 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.
-- 客户建筑信息表增加地下楼层数 floordown_count(INT,默认0)
-- 语义:floor_count 为地上楼层数,floordown_count 为地下楼层数
-- 幂等:ADD COLUMN IF NOT EXISTS 重复执行安全
ALTER TABLE customer_building
ADD COLUMN IF NOT EXISTS floordown_count INT DEFAULT 0;