mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
|
"""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 ###
|