refactor(anchoring): DDL·compose 루트 통합 — postgres-init/05 신설, 모듈 schema.sql·docker-compose 제거
- postgres-init/05-anchoring-schema.sql 신설(02-learning-schema 스타일) — anchoring 스키마· adjustments·인덱스 2종(부분 인덱스 포함)·뷰 2종. sessions 컬럼은 01/04 소관으로 명시 - 루트 docker-compose.yml 에 anchoring + anchoring-redis 서비스 추가(기존 스타일), 헤더 서비스 목록·DB 준비 절차 갱신, 모듈 compose 의 로그 로테이션(10MB×5) 이관 - 모듈 schema.sql·docker-compose.yml 삭제 — DDL 단일 원본은 postgres-init/05 - tests/conftest 부트스트랩 경로를 05 로 교체, 문서 4종·주석 포인터 갱신 (인수인계의 낡은 'negodata 가 redis 참조' 문구도 무Redis 현실로 교정) - 검증: 모듈 20·negodata 50 테스트 통과, docker compose config 정상 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2c299aa14
commit
5f9dec66cc
12 files changed
+80
-81
No files matched your search
@@ -15,7 +15,7 @@ from anchoring import db as adb
|
||||
from anchoring.config import load_config
|
||||
|
||||
CFG = load_config()
|
||||
_SCHEMA_SQL = Path(__file__).resolve().parents[1] / "schema.sql"
|
||||
_SCHEMA_SQL = Path(__file__).resolve().parents[3] / "postgres-init" / "05-anchoring-schema.sql"
|
||||
|
||||
|
||||
def _db_available() -> bool:
|
||||
@@ -40,7 +40,7 @@ requires_db = pytest.mark.skipif(not DB_OK, reason="로컬 Postgres(negosium_db)
|
||||
|
||||
|
||||
def _schema_statements() -> list[str]:
|
||||
"""schema.sql 에서 psql 메타(\\connect)·주석을 제거하고 문장 단위로 분리."""
|
||||
"""05-anchoring-schema.sql 에서 psql 메타(\\connect)·주석을 제거하고 문장 단위로 분리."""
|
||||
lines = [
|
||||
line for line in _SCHEMA_SQL.read_text().splitlines()
|
||||
if not line.startswith("\\") and not line.strip().startswith("--")
|
||||
|
||||
Reference in new issue
Block a user