fix: alembic migration uses table name mps_page_session, not class name
op.add_column takes the actual SQLite table name, not the SQLAlchemy model class name. PageSession maps to mps_page_session via CLASS_TO_TABLE.
This commit is contained in:
parent
a0d17cbf5f
commit
e87bb0b0c3
1 changed files with 2 additions and 2 deletions
|
|
@ -17,10 +17,10 @@ depends_on = None
|
|||
|
||||
def upgrade():
|
||||
op.add_column(
|
||||
"PageSession",
|
||||
"mps_page_session",
|
||||
sa.Column("is_owner", sa.Boolean(), nullable=True),
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column("PageSession", "is_owner")
|
||||
op.drop_column("mps_page_session", "is_owner")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue