33 lines
796 B
Python
33 lines
796 B
Python
"""Added datetime to task
|
|
|
|
Revision ID: cdd471f48b0d
|
|
Revises: af22ea98e0da
|
|
Create Date: 2024-02-03 11:36:03.826063
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'cdd471f48b0d'
|
|
down_revision = 'af22ea98e0da'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('task', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('datetime', sa.DateTime(), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('task', schema=None) as batch_op:
|
|
batch_op.drop_column('datetime')
|
|
|
|
# ### end Alembic commands ###
|