37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
"""auto
|
|
|
|
Revision ID: 447ff559592b
|
|
Revises: 408c432b5835
|
|
Create Date: 2025-06-06 08:47:25.908940
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '447ff559592b'
|
|
down_revision = '408c432b5835'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('submissions', sa.Column('vendor_name', sa.String(length=255), nullable=True))
|
|
op.add_column('submissions', sa.Column('rating', sa.Integer(), nullable=True))
|
|
op.add_column('submissions', sa.Column('old_vendor', sa.String(length=255), nullable=True))
|
|
op.add_column('submissions', sa.Column('new_vendor', sa.String(length=255), nullable=True))
|
|
op.add_column('submissions', sa.Column('alias_reason', sa.Text(), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('submissions', 'alias_reason')
|
|
op.drop_column('submissions', 'new_vendor')
|
|
op.drop_column('submissions', 'old_vendor')
|
|
op.drop_column('submissions', 'rating')
|
|
op.drop_column('submissions', 'vendor_name')
|
|
# ### end Alembic commands ###
|