test(store): initialize configuration revision baseline

Initialize configuration and settings revisions after test migrations so functional assertions remain independent of migration revision increments.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zyy
2026-11-30 23:25:46 +08:00
co-authored by Codex
parent fa187c5031
commit 6bf109e784
@@ -101,6 +101,15 @@ impl TestDatabase {
.run(&pool)
.await
.expect("apply test migrations");
// 功能测试从统一版本基线验证递增与回滚,不依赖数据迁移累计的版本
sqlx::query(
"update runtime_settings
set config_revision = 1, settings_revision = 1, account_error_protection_revision = 1
where id = 1",
)
.execute(&pool)
.await
.expect("initialize test runtime settings revisions");
Some(Self {
admin,
pool,