ki-backend/migrations/versions/459520b01f34_.py

35 lines
1.1 KiB
Python
Raw Normal View History

2021-10-04 18:10:31 +02:00
"""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 ###