mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Add curren ttoken and max token nr
This commit is contained in:
		
							
								
								
									
										34
									
								
								migrations/versions/62233e0cb2c7_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								migrations/versions/62233e0cb2c7_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,34 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 62233e0cb2c7
 | 
			
		||||
Revises: 68772b6560c3
 | 
			
		||||
Create Date: 2020-05-04 09:42:25.408403
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '62233e0cb2c7'
 | 
			
		||||
down_revision = '68772b6560c3'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('corpora', sa.Column('current_nr_of_tokens', sa.BigInteger(), nullable=True))
 | 
			
		||||
    op.add_column('corpora', sa.Column('max_nr_of_tokens', sa.BigInteger(), nullable=True))
 | 
			
		||||
    op.drop_column('corpora', 'analysis_container_name')
 | 
			
		||||
    op.drop_column('corpora', 'analysis_container_ip')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
			
		||||
    op.add_column('corpora', sa.Column('analysis_container_ip', sa.VARCHAR(length=16), autoincrement=False, nullable=True))
 | 
			
		||||
    op.add_column('corpora', sa.Column('analysis_container_name', sa.VARCHAR(length=32), autoincrement=False, nullable=True))
 | 
			
		||||
    op.drop_column('corpora', 'max_nr_of_tokens')
 | 
			
		||||
    op.drop_column('corpora', 'current_nr_of_tokens')
 | 
			
		||||
    # ### end Alembic commands ###
 | 
			
		||||
		Reference in New Issue
	
	Block a user