mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	update migrations script
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
"""empty message
 | 
					"""Add avatar table and conncect it to users
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Revision ID: ef6a275f8079
 | 
					Revision ID: ef6a275f8079
 | 
				
			||||||
Revises: 4820fa2e3ee2
 | 
					Revises: 4820fa2e3ee2
 | 
				
			||||||
@@ -9,7 +9,6 @@ from alembic import op
 | 
				
			|||||||
import sqlalchemy as sa
 | 
					import sqlalchemy as sa
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# revision identifiers, used by Alembic.
 | 
					 | 
				
			||||||
revision = 'ef6a275f8079'
 | 
					revision = 'ef6a275f8079'
 | 
				
			||||||
down_revision = '4820fa2e3ee2'
 | 
					down_revision = '4820fa2e3ee2'
 | 
				
			||||||
branch_labels = None
 | 
					branch_labels = None
 | 
				
			||||||
@@ -17,7 +16,6 @@ depends_on = None
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def upgrade():
 | 
					def upgrade():
 | 
				
			||||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
					 | 
				
			||||||
    op.create_table('avatars',
 | 
					    op.create_table('avatars',
 | 
				
			||||||
    sa.Column('creation_date', sa.DateTime(), nullable=True),
 | 
					    sa.Column('creation_date', sa.DateTime(), nullable=True),
 | 
				
			||||||
    sa.Column('filename', sa.String(length=255), nullable=True),
 | 
					    sa.Column('filename', sa.String(length=255), nullable=True),
 | 
				
			||||||
@@ -27,10 +25,7 @@ def upgrade():
 | 
				
			|||||||
    sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
 | 
					    sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
 | 
				
			||||||
    sa.PrimaryKeyConstraint('id')
 | 
					    sa.PrimaryKeyConstraint('id')
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    # ### end Alembic commands ###
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def downgrade():
 | 
					def downgrade():
 | 
				
			||||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
					 | 
				
			||||||
    op.drop_table('avatars')
 | 
					    op.drop_table('avatars')
 | 
				
			||||||
    # ### end Alembic commands ###
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user