35 lines
934 B
Python
35 lines
934 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: b3ff59df2833
|
||
|
Revises: fee4d1b1d192
|
||
|
Create Date: 2022-04-08 07:33:52.082355
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
from sqlalchemy.dialects import mysql
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'b3ff59df2833'
|
||
|
down_revision = 'fee4d1b1d192'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.alter_column('product', 'image',
|
||
|
existing_type=mysql.VARCHAR(length=200),
|
||
|
type_=sa.String(length=20000),
|
||
|
existing_nullable=True)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.alter_column('product', 'image',
|
||
|
existing_type=sa.String(length=20000),
|
||
|
type_=mysql.VARCHAR(length=200),
|
||
|
existing_nullable=True)
|
||
|
# ### end Alembic commands ###
|