forked from kompetenzinventar/ki-backend
availibility
This commit is contained in:
34
migrations/versions/459520b01f34_.py
Normal file
34
migrations/versions/459520b01f34_.py
Normal file
@ -0,0 +1,34 @@
|
||||
"""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 ###
|
24
migrations/versions/99f6b0756445_.py
Normal file
24
migrations/versions/99f6b0756445_.py
Normal file
@ -0,0 +1,24 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 99f6b0756445
|
||||
Revises: 9183e2335b05
|
||||
Create Date: 2021-10-03 14:45:10.980556
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '99f6b0756445'
|
||||
down_revision = '9183e2335b05'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
pass
|
||||
|
||||
|
||||
def downgrade():
|
||||
pass
|
Reference in New Issue
Block a user