mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 09:50:38 +01:00
37 lines
1 KiB
Python
37 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 ###
|