Skip to content
Snippets Groups Projects
Commit c5b77f3a authored by muoimeo's avatar muoimeo
Browse files

rewrite migration

parent ad3dee4b
No related branches found
No related tags found
No related merge requests found
"""Reset base after cleanup
Revision ID: 25fcfa506211
Revises:
Create Date: 2025-04-22 21:06:34.163685
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '25fcfa506211'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('uploadedfiles', schema=None) as batch_op:
batch_op.alter_column('error_details',
existing_type=mysql.LONGTEXT(collation='utf8mb4_unicode_ci'),
type_=sa.Text(length=16777215),
existing_nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('uploadedfiles', schema=None) as batch_op:
batch_op.alter_column('error_details',
existing_type=sa.Text(length=16777215),
type_=mysql.LONGTEXT(collation='utf8mb4_unicode_ci'),
existing_nullable=True)
# ### end Alembic commands ###
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment