app-MAIL-temp/migrations/versions/2020_020313_9c976df9b9c4_.py

39 lines
1.1 KiB
Python
Raw Normal View History

2020-02-03 07:09:48 +01:00
"""empty message
Revision ID: 9c976df9b9c4
Revises: 7c39ba4ec38d
Create Date: 2020-02-03 13:08:29.049797
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9c976df9b9c4'
down_revision = '7c39ba4ec38d'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('job',
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('name', sa.String(length=128), nullable=False),
sa.Column('payload', sa.JSON(), nullable=True),
sa.Column('taken', sa.Boolean(), nullable=False),
sa.Column('run_at', sqlalchemy_utils.types.arrow.ArrowType(), nullable=True),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('job')
# ### end Alembic commands ###