mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 09:30:40 +00:00
Merge branch 'profile-page' into development
This commit is contained in:
44
migrations/versions/4820fa2e3ee2_.py
Normal file
44
migrations/versions/4820fa2e3ee2_.py
Normal file
@ -0,0 +1,44 @@
|
||||
"""Add profile pages columns to users table
|
||||
|
||||
Revision ID: 4820fa2e3ee2
|
||||
Revises: 31b9c0259e6b
|
||||
Create Date: 2022-11-30 10:03:49.080576
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = '4820fa2e3ee2'
|
||||
down_revision = '31b9c0259e6b'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
def upgrade():
|
||||
|
||||
op.add_column(
|
||||
'users',
|
||||
sa.Column('full_name', sa.String(length=64), nullable=True)
|
||||
)
|
||||
op.add_column(
|
||||
'users',
|
||||
sa.Column('about_me', sa.String(length=256), nullable=True)
|
||||
)
|
||||
op.add_column(
|
||||
'users',
|
||||
sa.Column('location', sa.String(length=64), nullable=True)
|
||||
)
|
||||
op.add_column(
|
||||
'users',
|
||||
sa.Column('website', sa.String(length=128), nullable=True)
|
||||
)
|
||||
op.add_column(
|
||||
'users',
|
||||
sa.Column('organization', sa.String(length=128), nullable=True)
|
||||
)
|
||||
|
||||
def downgrade():
|
||||
op.drop_column('users', 'organization')
|
||||
op.drop_column('users', 'website')
|
||||
op.drop_column('users', 'location')
|
||||
op.drop_column('users', 'about_me')
|
||||
op.drop_column('users', 'full_name')
|
Reference in New Issue
Block a user