mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 09:30:40 +00:00
Add Notification model
This commit is contained in:
38
migrations/versions/471aa04c1a92_.py
Normal file
38
migrations/versions/471aa04c1a92_.py
Normal file
@ -0,0 +1,38 @@
|
||||
"""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 ###
|
Reference in New Issue
Block a user