fix: had to drop db

This commit is contained in:
2025-06-24 20:33:29 -04:00
parent 7da38ddd8c
commit 26bb7de018
12 changed files with 8 additions and 459 deletions
+7 -3
View File
@@ -1,5 +1,5 @@
from logging.config import fileConfig
from app.database import Base
from sqlalchemy import engine_from_config
from sqlalchemy import pool
@@ -16,7 +16,9 @@ if config.config_file_name is not None:
# add your model's MetaData object here
# for 'autogenerate' support
target_metadata = Base.metadata
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
# other values from the config, defined by the needs of env.py,
# can be acquired:
@@ -62,7 +64,9 @@ def run_migrations_online() -> None:
)
with connectable.connect() as connection:
context.configure(connection=connection, target_metadata=target_metadata)
context.configure(
connection=connection, target_metadata=target_metadata
)
with context.begin_transaction():
context.run_migrations()