"""empty message

Revision ID: a9229ea7dcef
Revises: 8a205910a765
Create Date: 2022-11-06 15:02:18.998708

"""
from datetime import datetime
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a9229ea7dcef'
down_revision = '8a205910a765'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('dislikes', sa.Column('date', sa.DateTime(), nullable=True))
    date = sa.table('dislikes', sa.column('date'))
    op.execute(date.update().values(date=datetime.utcnow()))
    op.alter_column('dislikes', 'date', nullable=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('dislikes', 'date')
    # ### end Alembic commands ###
