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:
Hyungi Ahn
2026-04-27 08:18:40 +09:00
parent 7804f22dce
commit 2df7b24ac9
10 changed files with 90 additions and 110 deletions
@@ -0,0 +1,5 @@
-- 172_study_session_assets_idx_document.sql (9/10)
-- 문서가 어느 세션에 연결됐는지 역참조 (filter ?document_id=...)
CREATE INDEX IF NOT EXISTS idx_session_assets_document
ON study_session_assets (document_id);