fix(study): split migration 164 into 10 single-statement files (asyncpg)
asyncpg prepared statement 는 single-command 만 허용. 원래 한 파일이던 study_sessions 스키마(CREATE TABLE x2 + CREATE INDEX x8)를 143~146 분할 패턴 따라 10개로 분리. 164: CREATE TABLE study_sessions 165~169: study_sessions 인덱스 5개 (partial) 170: CREATE TABLE study_session_assets 171~173: study_session_assets 인덱스 3개 문제: cannot insert multiple commands into a prepared statement 원인: _run_migrations 가 conn.exec_driver_sql 로 단일 prepared statement 실행
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- 171_study_session_assets_idx_session.sql (8/10)
|
||||
-- 세션별 assets 정렬 조회 (UI rendering)
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_session_assets_session
|
||||
ON study_session_assets (study_session_id, sort_order);
|
||||
Reference in New Issue
Block a user