15 lines
370 B
Python
15 lines
370 B
Python
from pathlib import Path
|
|
|
|
from adapters.postgres import PostgresTraceRepository
|
|
from config import get_settings
|
|
|
|
|
|
def main() -> None:
|
|
migration = Path(__file__).parent / "migrations/001_rag_retrieval_trace.sql"
|
|
PostgresTraceRepository(get_settings().postgres_dsn).migrate(migration)
|
|
print(f"Applied {migration.name}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|