feat: show author name instead of user x

This commit was merged in pull request #7.
This commit is contained in:
2025-06-24 21:14:35 -04:00
parent 7242579c17
commit 6bda5876ba
8 changed files with 154 additions and 39 deletions
+4 -5
View File
@@ -5,6 +5,8 @@ from sqlalchemy import pool
from alembic import context
from app.database import Base
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
@@ -17,8 +19,7 @@ if config.config_file_name is not None:
# add your model's MetaData object here
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = None
target_metadata = Base.metadata
# other values from the config, defined by the needs of env.py,
# can be acquired:
@@ -64,9 +65,7 @@ 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()