publish-shout-fix
Some checks failed
Deploy on push / deploy (push) Failing after 32s

This commit is contained in:
2025-08-21 12:16:30 +03:00
parent 343c60f608
commit 1b25738714
10 changed files with 246 additions and 195 deletions

View File

@@ -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 ###