tests-fix-1

This commit is contained in:
2025-08-27 02:45:15 +03:00
parent 90aece7a60
commit eef2ae1d5e
9 changed files with 413 additions and 115 deletions

View File

@@ -1,30 +0,0 @@
"""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 ###