refactor(db): postgres-init 2파일 체계로 통합 — 00-init.sql(스키마 전체) + temp-data.sql(시드)
- 00-init.sql: 구 01(도메인)+02(learning)+05(anchoring) 통합, 구 04(누적 ALTER)는 01에 기반영되어 폐기 - temp-data.sql: 구 03 시드 + 협상 카드 시드(일반 11장·와일드 5장, 멱등 가드, available=TRUE) - card 테이블: script TEXT 전환 + tone·strategy_type 컬럼 추가, 카드 변수 9종 체계 문서화 - 참조 갱신: 루트 README·docker-compose 주석, schedules/anchoring conftest(00-init 적용)·README·문서 - anchoring 테스트 20건 통과, 신규 DB 초기화·멱등성 검증 완료 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d9191420c1
commit
26f518ed6e
15 files changed
+596
-389
No files matched your search
@@ -10,7 +10,7 @@
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- 1) 구 이름 뷰 제거 (신 이름 뷰는 마지막에 재생성 — 정의는 postgres-init/05-anchoring-schema.sql 과 동일)
|
||||
-- 1) 구 이름 뷰 제거 (신 이름 뷰는 마지막에 재생성 — 정의는 postgres-init/00-init.sql 과 동일)
|
||||
DROP VIEW IF EXISTS anchoring.rate_history;
|
||||
DROP VIEW IF EXISTS anchoring.current_rates;
|
||||
|
||||
@@ -83,7 +83,7 @@ BEGIN
|
||||
END LOOP;
|
||||
END $$;
|
||||
|
||||
-- 5) 신 이름 뷰 재생성 (postgres-init/05-anchoring-schema.sql §조회용 뷰와 동일 정의)
|
||||
-- 5) 신 이름 뷰 재생성 (postgres-init/00-init.sql §조회용 뷰와 동일 정의)
|
||||
CREATE OR REPLACE VIEW anchoring.value_history AS
|
||||
SELECT adjustment_id,
|
||||
company_id,
|
||||
|
||||
Reference in new issue
Block a user