fix(migrations): seed log migration flag

This commit is contained in:
OpenAI Codex
2026-10-07 07:00:32 +00:00
parent 4e584d2e2d
commit d1978a8571
3 changed files with 22 additions and 1 deletions
@@ -0,0 +1,7 @@
-- +goose Up
INSERT INTO w_system_configs (key, value, type, visibility, description, created_at, updated_at)
VALUES ('log_db_migration', '', 'system', 0, '日志数据库切换冻结标记', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
ON CONFLICT (key) DO NOTHING;
-- +goose Down
-- Keep the runtime migration flag: this row may have existed before this migration.