2021-11-24 18:35:38 +01:00
|
|
|
"""empty message
|
|
|
|
|
|
|
|
Revision ID: 96a01fe23389
|
|
|
|
Revises: cd5ab8a01f4a
|
|
|
|
Create Date: 2021-11-24 17:12:33.893988
|
|
|
|
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
2023-05-13 18:53:21 +02:00
|
|
|
from sqlalchemy import text
|
2021-11-24 18:35:38 +01:00
|
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
|
|
revision = '96a01fe23389'
|
|
|
|
down_revision = 'cd5ab8a01f4a'
|
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2023-05-13 18:53:21 +02:00
|
|
|
op.execute(text("DELETE FROM user_email_verification"))
|
2021-11-24 18:35:38 +01:00
|
|
|
op.add_column('user', sa.Column('created_at', sa.DateTime(), nullable=True))
|
|
|
|
op.add_column('user_email_verification', sa.Column('created_at', sa.DateTime(), nullable=False))
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
|
|
|
|
op.drop_column('user_email_verification', 'created_at')
|
|
|
|
op.drop_column('user', 'created_at')
|