"""Person password change

Revision ID: 4645900df7d7
Revises: 3088b34ff640
Create Date: 2023-10-12 23:47:47.601932

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '4645900df7d7'
down_revision = '3088b34ff640'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_auth', sa.Column('password_changed_date', sa.TIMESTAMP(timezone=True), nullable=True))
    op.add_column('cmf_person', sa.Column('password_must_change', sa.Boolean(), nullable=False, server_default="false"))
    op.add_column('cmf_person', sa.Column('password_changed_date', sa.TIMESTAMP(timezone=True), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('cmf_person', 'password_changed_date')
    op.drop_column('cmf_person', 'password_must_change')
    op.drop_column('cmf_auth', 'password_changed_date')
    # ### end Alembic commands ###
