"""crypt

Revision ID: 3f5339877c41
Revises: b9cd4045f1d2
Create Date: 2023-05-16 12:44:37.012260

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '3f5339877c41'
down_revision = 'b9cd4045f1d2'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('cmf_mailbox', 'password',
               existing_type=sa.VARCHAR(length=256),
               type_=sa.String(length=4096),
               existing_nullable=True)
    op.alter_column('cmf_mailbox2', 'password',
               existing_type=sa.VARCHAR(length=256),
               type_=sa.String(length=4096),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'password',
               existing_type=sa.VARCHAR(length=256),
               type_=sa.String(length=4096),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'ext_token',
               existing_type=sa.VARCHAR(length=256),
               type_=sa.String(length=4096),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'ext_password',
               existing_type=sa.VARCHAR(length=256),
               type_=sa.String(length=4096),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'ext_secret',
               existing_type=sa.VARCHAR(length=256),
               type_=sa.String(length=4096),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'ext_key',
               existing_type=sa.VARCHAR(length=256),
               type_=sa.String(length=4096),
               existing_nullable=True)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('cmf_plugin', 'ext_key',
               existing_type=sa.String(length=4096),
               type_=sa.VARCHAR(length=256),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'ext_secret',
               existing_type=sa.String(length=4096),
               type_=sa.VARCHAR(length=256),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'ext_password',
               existing_type=sa.String(length=4096),
               type_=sa.VARCHAR(length=256),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'ext_token',
               existing_type=sa.String(length=4096),
               type_=sa.VARCHAR(length=256),
               existing_nullable=True)
    op.alter_column('cmf_plugin', 'password',
               existing_type=sa.String(length=4096),
               type_=sa.VARCHAR(length=256),
               existing_nullable=True)
    op.alter_column('cmf_mailbox2', 'password',
               existing_type=sa.String(length=4096),
               type_=sa.VARCHAR(length=256),
               existing_nullable=True)
    op.alter_column('cmf_mailbox', 'password',
               existing_type=sa.String(length=4096),
               type_=sa.VARCHAR(length=256),
               existing_nullable=True)
    # ### end Alembic commands ###
