forked from kompetenzinventar/ki-backend
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 459520b01f34
|
||
|
Revises: 99f6b0756445
|
||
|
Create Date: 2021-10-03 14:45:30.389359
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '459520b01f34'
|
||
|
down_revision = '99f6b0756445'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('profile', sa.Column('availabilityStatus', sa.Boolean(), nullable=True))
|
||
|
op.add_column('profile', sa.Column('availabilityText', sa.String(length=4000), nullable=True))
|
||
|
op.add_column('profile', sa.Column('availabilityHoursPerWeek', sa.Integer(), nullable=True))
|
||
|
op.drop_column('profile', 'availability')
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.add_column('profile', sa.Column('availability', sa.VARCHAR(length=4000), nullable=True))
|
||
|
op.drop_column('profile', 'availabilityHoursPerWeek')
|
||
|
op.drop_column('profile', 'availabilityText')
|
||
|
op.drop_column('profile', 'availabilityStatus')
|
||
|
# ### end Alembic commands ###
|