app/migrations/versions/2021_062217_29ea13ed76f9_.py
Son NK b84eb13ab5 Discard ignored email
Create IgnoredEmail model
2021-06-22 17:52:24 +02:00

36 lines
1 KiB
Python

"""empty message
Revision ID: 29ea13ed76f9
Revises: a5e643d562c9
Create Date: 2021-06-22 17:51:27.343947
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '29ea13ed76f9'
down_revision = 'a5e643d562c9'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('ignored_email',
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.Column('rcpt_to', sa.String(length=512), nullable=False),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('ignored_email')
# ### end Alembic commands ###