mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Remove the TranskribusHTRPipelineModel and fetch data on request.
This commit is contained in:
		
							
								
								
									
										35
									
								
								migrations/versions/a3b727e3ff71_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								migrations/versions/a3b727e3ff71_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
"""Remove transkribus_htr_pipeline_models table
 | 
			
		||||
 | 
			
		||||
Revision ID: a3b727e3ff71
 | 
			
		||||
Revises: 63b2cc26a01f
 | 
			
		||||
Create Date: 2022-10-12 13:08:19.065218
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = 'a3b727e3ff71'
 | 
			
		||||
down_revision = '63b2cc26a01f'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.drop_table('transkribus_htr_pipeline_models')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.create_table('transkribus_htr_pipeline_models',
 | 
			
		||||
    sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False),
 | 
			
		||||
    sa.Column('user_id', sa.INTEGER(), autoincrement=False, nullable=True),
 | 
			
		||||
    sa.Column('shared', sa.BOOLEAN(), autoincrement=False, nullable=True),
 | 
			
		||||
    sa.Column('transkribus_model_id', sa.INTEGER(), autoincrement=False, nullable=True),
 | 
			
		||||
    sa.ForeignKeyConstraint(['user_id'], ['users.id'], name='transkribus_htr_models_user_id_fkey'),
 | 
			
		||||
    sa.PrimaryKeyConstraint('id', name='transkribus_htr_models_pkey')
 | 
			
		||||
    )
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
		Reference in New Issue
	
	Block a user