fix(data): baseline 迁移末尾恢复 search_path 为 public,确保 sqlx 记账正常

This commit is contained in:
fawney19
2026-04-11 16:17:02 +08:00
parent b0f068cc5d
commit a570a77cca
2 changed files with 21 additions and 6 deletions

View File

@@ -4579,9 +4579,12 @@ EXCEPTION
WHEN invalid_table_definition THEN NULL;
END $mig$;
-- Restore a normal lookup path before sqlx records this migration in the
-- same transaction. sqlx inserts into `_sqlx_migrations` unqualified.
SELECT pg_catalog.set_config('search_path', 'public', true);
--
-- PostgreSQL database dump complete
--