fix inverted alembic file check (#4238)
This commit is contained in:
parent
9d29e7f3ee
commit
d0c1eb7488
@ -38,7 +38,7 @@ def get_engine(url: str | None = None) -> sqlalchemy.engine.Engine:
|
|||||||
url = url or conf.db_url
|
url = url or conf.db_url
|
||||||
if url is None:
|
if url is None:
|
||||||
raise ValueError("No database url configured")
|
raise ValueError("No database url configured")
|
||||||
if environment.ALEMBIC_CONFIG.exists():
|
if not environment.ALEMBIC_CONFIG.exists():
|
||||||
console.warn(
|
console.warn(
|
||||||
"Database is not initialized, run [bold]reflex db init[/bold] first."
|
"Database is not initialized, run [bold]reflex db init[/bold] first."
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user