mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 11:24:18 +00:00
39 lines
1.6 KiB
Python
39 lines
1.6 KiB
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 4638e6509e13
|
||
|
Revises: 471aa04c1a92
|
||
|
Create Date: 2020-05-12 06:42:04.475585
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '4638e6509e13'
|
||
|
down_revision = '471aa04c1a92'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('notifications_data', sa.Column('notified', sa.Boolean(), nullable=True))
|
||
|
op.drop_column('notifications_data', 'notified_on_queued')
|
||
|
op.drop_column('notifications_data', 'notified_on_running')
|
||
|
op.drop_column('notifications_data', 'notified_on_submitted')
|
||
|
op.drop_column('notifications_data', 'notified_on_complete')
|
||
|
op.drop_column('notifications_data', 'notified_on_canceling')
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('notifications_data', sa.Column('notified_on_canceling', sa.BOOLEAN(), autoincrement=False, nullable=True))
|
||
|
op.add_column('notifications_data', sa.Column('notified_on_complete', sa.BOOLEAN(), autoincrement=False, nullable=True))
|
||
|
op.add_column('notifications_data', sa.Column('notified_on_submitted', sa.BOOLEAN(), autoincrement=False, nullable=True))
|
||
|
op.add_column('notifications_data', sa.Column('notified_on_running', sa.BOOLEAN(), autoincrement=False, nullable=True))
|
||
|
op.add_column('notifications_data', sa.Column('notified_on_queued', sa.BOOLEAN(), autoincrement=False, nullable=True))
|
||
|
op.drop_column('notifications_data', 'notified')
|
||
|
# ### end Alembic commands ###
|