app-MAIL-temp/migrations/versions/2021_080211_ffa75d04e6ef_.py

37 lines
1.0 KiB
Python
Raw Normal View History

2021-08-02 11:30:29 +02:00
"""empty message
Revision ID: ffa75d04e6ef
Revises: c3470e2d3224
Create Date: 2021-08-02 11:30:05.509051
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ffa75d04e6ef'
down_revision = 'c3470e2d3224'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('ignore_bounce_sender',
sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
sa.Column('created_at', sqlalchemy_utils.types.arrow.ArrowType(), nullable=False),
sa.Column('updated_at', sqlalchemy_utils.types.arrow.ArrowType(), nullable=True),
sa.Column('mail_from', sa.String(length=512), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('mail_from')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('ignore_bounce_sender')
# ### end Alembic commands ###