This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
"""Add shout field to Draft model
|
||||
|
||||
Revision ID: 7707cef3421c
|
||||
Revises:
|
||||
Create Date: 2025-08-21 12:10:35.621695
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '7707cef3421c'
|
||||
down_revision = None
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('draft', sa.Column('shout', sa.Integer(), nullable=True))
|
||||
op.create_foreign_key(None, 'draft', 'shout', ['shout'], ['id'])
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_constraint(None, 'draft', type_='foreignkey')
|
||||
op.drop_column('draft', 'shout')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user