nopaque/web/migrations/versions/471aa04c1a92_.py

39 lines
1.1 KiB
Python
Raw Normal View History

2020-05-11 14:09:09 +00:00
"""empty message
Revision ID: 471aa04c1a92
Revises: 62233e0cb2c7
Create Date: 2020-05-11 14:07:12.934869
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '471aa04c1a92'
down_revision = '62233e0cb2c7'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('notifications_data',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('job_id', sa.Integer(), nullable=True),
sa.Column('notified_on_submitted', sa.Boolean(), nullable=True),
sa.Column('notified_on_queued', sa.Boolean(), nullable=True),
sa.Column('notified_on_running', sa.Boolean(), nullable=True),
sa.Column('notified_on_complete', sa.Boolean(), nullable=True),
sa.Column('notified_on_canceling', sa.Boolean(), nullable=True),
sa.ForeignKeyConstraint(['job_id'], ['jobs.id'], ),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('notifications_data')
# ### end Alembic commands ###