got alembic working

This commit is contained in:
2026-04-21 11:36:58 -04:00
parent e5ba089479
commit be4b473a3c
14 changed files with 144 additions and 40 deletions

View File

@@ -34,7 +34,7 @@ class DatabaseConfig:
base_module: str
base_class_name: str
models_module: str
script_location: str = "python/alembic"
script_location: str = "alembic"
file_template: str = "%%(year)d_%%(month).2d_%%(day).2d-%%(slug)s_%%(rev)s"
def get_base(self) -> type[DeclarativeBase]:
@@ -77,10 +77,10 @@ class DatabaseConfig:
DATABASES: dict[str, DatabaseConfig] = {
"data_science_dev": DatabaseConfig(
env_prefix="DATA_SCIENCE_DEV",
version_location="python/alembic/data_science_dev/versions",
base_module="python.orm.data_science_dev.base",
version_location="alembic/data_science_dev/versions",
base_module="pipelines.orm.data_science_dev.base",
base_class_name="DataScienceDevBase",
models_module="python.orm.data_science_dev.models",
models_module="pipelines.orm.data_science_dev.models",
),
}