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
@@ -14,7 +14,7 @@ from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from common.anchoring.constants import ANCHORING_VALUE_MAX, ANCHORING_VALUE_MIN, SAMPLEABLE_SUPPLIER_TYPES
|
||||
from common.logger import LOG
|
||||
|
||||
# 모듈 소유 DDL(schedules/anchoring/schema.sql)의 조회용 뷰 — negodata 는 ORM 모델 없이 읽기만 한다.
|
||||
# 모듈 소유 DDL(postgres-init/05-anchoring-schema.sql)의 조회용 뷰 — negodata 는 ORM 모델 없이 읽기만 한다.
|
||||
_current_values = table(
|
||||
"current_values",
|
||||
column("company_id"),
|
||||
|
||||
@@ -158,7 +158,7 @@ async def _drop_anchoring(engine):
|
||||
await conn.execute(text("DROP SCHEMA IF EXISTS anchoring CASCADE"))
|
||||
|
||||
|
||||
# 모듈 소유 DDL(schedules/anchoring/schema.sql)에서 조회 경로에 필요한 부분 발췌.
|
||||
# 모듈 소유 DDL(postgres-init/05-anchoring-schema.sql)에서 조회 경로에 필요한 부분 발췌.
|
||||
# negodata 는 이 스키마를 만들지 않는다(모듈이 소유) — 테스트 재현용으로만 여기 둔다.
|
||||
_ANCHORING_DDL = (
|
||||
"CREATE SCHEMA IF NOT EXISTS anchoring",
|
||||
|
||||
Reference in new issue
Block a user