app-MAIL-temp/migrations/versions/6bbda4685999_.py
2019-12-15 18:55:14 +02:00

39 lines
1.2 KiB
Python

"""empty message
Revision ID: 6bbda4685999
Revises: 2e2b53afd819
Create Date: 2019-11-16 17:06:31.307381
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6bbda4685999'
down_revision = '2e2b53afd819'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('forward_email_log',
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('forward_id', sa.Integer(), nullable=False),
sa.Column('is_reply', sa.Boolean(), nullable=False),
sa.Column('blocked', sa.Boolean(), nullable=False),
sa.ForeignKeyConstraint(['forward_id'], ['forward_email.id'], ondelete='cascade'),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('forward_email_log')
# ### end Alembic commands ###