Initialize alembic for the project.
()
| 346 | return False |
| 347 | |
| 348 | def alembic_init(): |
| 349 | """Initialize alembic for the project.""" |
| 350 | alembic.command.init( |
| 351 | config=alembic.config.Config(environment.ALEMBIC_CONFIG.get()), |
| 352 | directory=str(environment.ALEMBIC_CONFIG.get().parent / "alembic"), |
| 353 | ) |
| 354 | |
| 355 | def get_migration_history(): |
| 356 | """Get migration history with current database state. |