fix(db): enable test env cold-start migrations on empty database.

Use pgvector image with extensions-only init, seed legacy users before project/chat fixtures, and align test compose with goose-only schema bootstrap.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
weichen
2026-09-12 09:42:45 +00:00
co-authored by Cursor
parent 12122d06b5
commit e829dd6074
3 changed files with 12 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
-- 各环境 Postgres 容器首次启动时仅安装扩展;业务表由 goose 迁移链创建。
CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";