feat: 抽测风速改为用户可自定义次数(增删按钮)
- models.rs:新增 spot_check_count 字段(默认 5) - db.rs:INSERT/SELECT 添加 spotcheckcount 列 - migrations/007:ALTER TABLE weather_data ADD spotcheckcount - afterbody.js:使用 data.spotCheckCount 动态渲染抽测数据
This commit is contained in:
3
migrations/007_add_spot_check_count.sql
Normal file
3
migrations/007_add_spot_check_count.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- 为 weather_data 表添加抽测次数字段
|
||||
ALTER TABLE weather_data
|
||||
ADD COLUMN IF NOT EXISTS spotcheckcount INTEGER NOT NULL DEFAULT 5;
|
||||
Reference in New Issue
Block a user