mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 22:53:27 +08:00
33 lines
868 B
Python
33 lines
868 B
Python
"""empty message
|
|
|
|
Revision ID: c79c702a1f23
|
|
Revises: 4fac8c8a704c
|
|
Create Date: 2019-08-19 21:26:11.924847
|
|
|
|
"""
|
|
import sqlalchemy_utils
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'c79c702a1f23'
|
|
down_revision = '4fac8c8a704c'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.alter_column('activation_code', 'expired',
|
|
existing_type=postgresql.TIMESTAMP(),
|
|
nullable=False)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.alter_column('activation_code', 'expired',
|
|
existing_type=postgresql.TIMESTAMP(),
|
|
nullable=True)
|
|
# ### end Alembic commands ###
|