Skip to content

Commit

Permalink
fix inverted alembic file check (#4238)
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 authored Oct 24, 2024
1 parent 9d29e7f commit d0c1eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflex/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_engine(url: str | None = None) -> sqlalchemy.engine.Engine:
url = url or conf.db_url
if url is None:
raise ValueError("No database url configured")
if environment.ALEMBIC_CONFIG.exists():
if not environment.ALEMBIC_CONFIG.exists():
console.warn(
"Database is not initialized, run [bold]reflex db init[/bold] first."
)
Expand Down

0 comments on commit d0c1eb7

Please sign in to comment.