33 lines
872 B
Python
33 lines
872 B
Python
"""empty message
|
|
|
|
Revision ID: cd76771172a8
|
|
Revises: f238158c8ad6
|
|
Create Date: 2022-05-28 17:21:55.500700
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'cd76771172a8'
|
|
down_revision = 'f238158c8ad6'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('entity', sa.Column('start', sa.Date(), nullable=True))
|
|
op.add_column('entity', sa.Column('end', sa.Date(), nullable=True))
|
|
op.add_column('entity', sa.Column('active', sa.Boolean(), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('entity', 'active')
|
|
op.drop_column('entity', 'end')
|
|
op.drop_column('entity', 'start')
|
|
# ### end Alembic commands ###
|