mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	First working mail notification system
This commit is contained in:
		
							
								
								
									
										30
									
								
								migrations/versions/10a92d8f4616_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								migrations/versions/10a92d8f4616_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 10a92d8f4616
 | 
			
		||||
Revises: 4638e6509e13
 | 
			
		||||
Create Date: 2020-05-12 11:24:46.022674
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '10a92d8f4616'
 | 
			
		||||
down_revision = '4638e6509e13'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('notifications_data', sa.Column('notified_on', sa.String(length=16), nullable=True))
 | 
			
		||||
    op.drop_column('notifications_data', 'notified')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('notifications_data', sa.Column('notified', sa.BOOLEAN(), autoincrement=False, nullable=True))
 | 
			
		||||
    op.drop_column('notifications_data', 'notified_on')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
							
								
								
									
										28
									
								
								migrations/versions/3d9a20b8b26c_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								migrations/versions/3d9a20b8b26c_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 3d9a20b8b26c
 | 
			
		||||
Revises: 421ba4373e50
 | 
			
		||||
Create Date: 2020-05-14 09:30:56.266381
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '3d9a20b8b26c'
 | 
			
		||||
down_revision = '421ba4373e50'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('notification_email_data', sa.Column('notify_status', sa.String(length=16), nullable=True))
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.drop_column('notification_email_data', 'notify_status')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
							
								
								
									
										33
									
								
								migrations/versions/421ba4373e50_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								migrations/versions/421ba4373e50_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 421ba4373e50
 | 
			
		||||
Revises: 5ba6786a847e
 | 
			
		||||
Create Date: 2020-05-14 08:35:47.367125
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '421ba4373e50'
 | 
			
		||||
down_revision = '5ba6786a847e'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.create_table('notification_email_data',
 | 
			
		||||
    sa.Column('id', sa.Integer(), nullable=False),
 | 
			
		||||
    sa.Column('job_id', sa.Integer(), 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('notification_email_data')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
							
								
								
									
										38
									
								
								migrations/versions/4638e6509e13_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								migrations/versions/4638e6509e13_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
			
		||||
"""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 ###
 | 
			
		||||
							
								
								
									
										28
									
								
								migrations/versions/4886241e0f5d_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								migrations/versions/4886241e0f5d_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 4886241e0f5d
 | 
			
		||||
Revises: 3d9a20b8b26c
 | 
			
		||||
Create Date: 2020-05-14 11:58:08.498454
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '4886241e0f5d'
 | 
			
		||||
down_revision = '3d9a20b8b26c'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('notification_email_data', sa.Column('creation_date', sa.DateTime(), nullable=True))
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.drop_column('notification_email_data', 'creation_date')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
							
								
								
									
										42
									
								
								migrations/versions/5ba6786a847e_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								migrations/versions/5ba6786a847e_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 5ba6786a847e
 | 
			
		||||
Revises: 10a92d8f4616
 | 
			
		||||
Create Date: 2020-05-12 13:15:56.265610
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '5ba6786a847e'
 | 
			
		||||
down_revision = '10a92d8f4616'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.create_table('notification_data',
 | 
			
		||||
    sa.Column('id', sa.Integer(), nullable=False),
 | 
			
		||||
    sa.Column('job_id', sa.Integer(), nullable=True),
 | 
			
		||||
    sa.Column('notified_on', sa.String(length=16), nullable=True),
 | 
			
		||||
    sa.ForeignKeyConstraint(['job_id'], ['jobs.id'], ),
 | 
			
		||||
    sa.PrimaryKeyConstraint('id')
 | 
			
		||||
    )
 | 
			
		||||
    op.drop_table('notifications_data')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.create_table('notifications_data',
 | 
			
		||||
    sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False),
 | 
			
		||||
    sa.Column('job_id', sa.INTEGER(), autoincrement=False, nullable=True),
 | 
			
		||||
    sa.Column('notified_on', sa.VARCHAR(length=16), autoincrement=False, nullable=True),
 | 
			
		||||
    sa.ForeignKeyConstraint(['job_id'], ['jobs.id'], name='notifications_data_job_id_fkey'),
 | 
			
		||||
    sa.PrimaryKeyConstraint('id', name='notifications_data_pkey')
 | 
			
		||||
    )
 | 
			
		||||
    op.drop_table('notification_data')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
		Reference in New Issue
	
	Block a user