MCPcopy Index your code
hub / github.com/reflex-dev/reflex / alembic_init

Function alembic_init

reflex/model.py:348–353  ·  view source on GitHub ↗

Initialize alembic for the project.

()

Source from the content-addressed store, hash-verified

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.

Callers 3

test_automigrationFunction · 0.90
test_automigrationFunction · 0.90
alembic_initMethod · 0.85

Calls 1

getMethod · 0.45

Tested by 2

test_automigrationFunction · 0.72
test_automigrationFunction · 0.72