mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Update CorpusFollowerAssociation table
This commit is contained in:
		
							
								
								
									
										42
									
								
								migrations/versions/03c7211f089d_.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								migrations/versions/03c7211f089d_.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
"""empty message
 | 
			
		||||
 | 
			
		||||
Revision ID: 03c7211f089d
 | 
			
		||||
Revises: 5fe6a6c7870c
 | 
			
		||||
Create Date: 2023-02-21 09:57:22.005883
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
from alembic import op
 | 
			
		||||
import sqlalchemy as sa
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# revision identifiers, used by Alembic.
 | 
			
		||||
revision = '03c7211f089d'
 | 
			
		||||
down_revision = '5fe6a6c7870c'
 | 
			
		||||
branch_labels = None
 | 
			
		||||
depends_on = None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def upgrade():
 | 
			
		||||
    op.alter_column(
 | 
			
		||||
        'corpus_follower_associations',
 | 
			
		||||
        'followed_corpus_id',
 | 
			
		||||
        new_column_name='corpus_id'
 | 
			
		||||
    )
 | 
			
		||||
    op.alter_column(
 | 
			
		||||
        'corpus_follower_associations',
 | 
			
		||||
        'following_user_id',
 | 
			
		||||
        new_column_name='follower_id'
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def downgrade():
 | 
			
		||||
    op.alter_column(
 | 
			
		||||
        'corpus_follower_associations',
 | 
			
		||||
        'corpus_id',
 | 
			
		||||
        new_column_name='followed_corpus_id'
 | 
			
		||||
    )
 | 
			
		||||
    op.alter_column(
 | 
			
		||||
        'corpus_follower_associations',
 | 
			
		||||
        'follower_id',
 | 
			
		||||
        new_column_name='following_user_id'
 | 
			
		||||
    )
 | 
			
		||||
		Reference in New Issue
	
	Block a user