Files
asd-backend/migrations/007_add_spot_check_count.sql
milky0217 54484482c3 feat: 抽测风速改为用户可自定义次数(增删按钮)
- models.rs:新增 spot_check_count 字段(默认 5)
- db.rs:INSERT/SELECT 添加 spotcheckcount 列
- migrations/007:ALTER TABLE weather_data ADD spotcheckcount
- afterbody.js:使用 data.spotCheckCount 动态渲染抽测数据
2026-05-18 09:51:43 +08:00

4 lines
141 B
SQL

-- 为 weather_data 表添加抽测次数字段
ALTER TABLE weather_data
ADD COLUMN IF NOT EXISTS spotcheckcount INTEGER NOT NULL DEFAULT 5;