优化数据库结构与数据插入逻辑
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
- [ ] Limiter
|
||||
- [ ] Compress
|
||||
|
||||
更新数据库填充
|
||||
|
||||
检查数据库枚举字段,0 值只作为空值使用
|
||||
|
||||
实现开发时迁移脚本:
|
||||
@@ -60,7 +62,7 @@ oauth token 验证授权范围
|
||||
开发环境数据库迁移:
|
||||
|
||||
```powershell
|
||||
pg-schema-diff apply --schema-dir .\scripts\sql --dsn "host=localhost user=test password=test dbname=app port=5432 sslmode=disable TimeZone=Asia/Shanghai"
|
||||
pg-schema-diff apply --schema-dir .\scripts\sql --dsn "host=localhost user=test password=test dbname=app port=5432 sslmode=disable TimeZone=Asia/Shanghai" --allow-hazards INDEX_BUILD,INDEX_DROPPE
|
||||
```
|
||||
|
||||
## 枚举字典
|
||||
|
||||
Reference in New Issue
Block a user