fix(db): 重编号 Pages 部署源迁移避免版本冲突

main 已占用 202607190001(OpenResty 默认限流),
将 Pages source runtime / scanner seed 顺延为
202607190002、202607190003,并同步迁移测试期望配置数。
This commit is contained in:
ryan
2026-07-19 19:41:30 +08:00
parent c92f986978
commit f0b51a99b3
8 changed files with 16 additions and 15 deletions
@@ -21,8 +21,8 @@ import (
)
const (
pagesSourceScanPreviousMigration = int64(202607190001)
pagesSourceScanMigration = int64(202607190002)
pagesSourceScanPreviousMigration = int64(202607190002)
pagesSourceScanMigration = int64(202607190003)
pagesSourceScanTaskType = "of_pages_source_scan"
)
@@ -114,8 +114,8 @@ func runPagesSourceScanScheduleMigration(
func TestPagesSourceScanScheduleMigrationsUseDatabaseGeneratedIDs(t *testing.T) {
for _, name := range []string{
"goose/postgres/202607190002_seed_pages_source_scan.sql",
"goose/sqlite/202607190002_seed_pages_source_scan.sql",
"goose/postgres/202607190003_seed_pages_source_scan.sql",
"goose/sqlite/202607190003_seed_pages_source_scan.sql",
} {
t.Run(name, func(t *testing.T) {
content, err := migrationFS.ReadFile(name)
@@ -126,7 +126,7 @@ func TestPagesSourceScanScheduleMigrationsUseDatabaseGeneratedIDs(t *testing.T)
})
}
postgresContent, err := migrationFS.ReadFile("goose/postgres/202607190002_seed_pages_source_scan.sql")
postgresContent, err := migrationFS.ReadFile("goose/postgres/202607190003_seed_pages_source_scan.sql")
require.NoError(t, err)
compactPostgres := strings.Join(strings.Fields(strings.ToLower(string(postgresContent))), " ")
assert.Contains(