mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 23:06:36 +08:00
fix(db): 重编号 Pages 部署源迁移避免版本冲突
main 已占用 202607190001(OpenResty 默认限流), 将 Pages source runtime / scanner seed 顺延为 202607190002、202607190003,并同步迁移测试期望配置数。
This commit is contained in:
@@ -368,8 +368,8 @@ PostgreSQL 与 SQLite 均创建同语义的部分唯一索引。禁止用空字
|
||||
|
||||
新增双方言 migration:
|
||||
|
||||
1. `202607190001_add_pages_source_runtime.sql`:两张 source 表、project content version、deployment provenance、索引和存量回填。
|
||||
2. `202607190002_seed_pages_source_scan.sql`:幂等插入 `of_pages_source_scan` 的 5 分钟 schedule。
|
||||
1. `202607190002_add_pages_source_runtime.sql`:两张 source 表、project content version、deployment provenance、索引和存量回填。
|
||||
2. `202607190003_seed_pages_source_scan.sql`:幂等插入 `of_pages_source_scan` 的 5 分钟 schedule。
|
||||
|
||||
存量 deployment 只能可靠回填为 `source_type=manual_upload`、`trigger_type=manual_upload`,identity/revision 保持 NULL;现有记录无法反推出是否来自旧一次性 URL。schedule seed 不写死 ID,使用 `WHERE NOT EXISTS (task_type = 'of_pages_source_scan')`,Down 仅按该 task type 删除。
|
||||
|
||||
@@ -1143,13 +1143,13 @@ scanner TaskResult 和结构化日志至少记录:
|
||||
|
||||
#### [NEW] PostgreSQL
|
||||
|
||||
* `internal/db/migrator/goose/postgres/202607190001_add_pages_source_runtime.sql`
|
||||
* `internal/db/migrator/goose/postgres/202607190002_seed_pages_source_scan.sql`
|
||||
* `internal/db/migrator/goose/postgres/202607190002_add_pages_source_runtime.sql`
|
||||
* `internal/db/migrator/goose/postgres/202607190003_seed_pages_source_scan.sql`
|
||||
|
||||
#### [NEW] SQLite
|
||||
|
||||
* `internal/db/migrator/goose/sqlite/202607190001_add_pages_source_runtime.sql`
|
||||
* `internal/db/migrator/goose/sqlite/202607190002_seed_pages_source_scan.sql`
|
||||
* `internal/db/migrator/goose/sqlite/202607190002_add_pages_source_runtime.sql`
|
||||
* `internal/db/migrator/goose/sqlite/202607190003_seed_pages_source_scan.sql`
|
||||
|
||||
版本号若已被其它分支占用,实施时只顺延编号,不改变 DDL/DML 拆分。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user