mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
hmmmm
This commit is contained in:
@@ -5,11 +5,11 @@ Revises: 0417_change_total_message_limit
|
|||||||
Create Date: 2025-08-28 12:34:32.857422
|
Create Date: 2025-08-28 12:34:32.857422
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from alembic import op
|
from alembic import op
|
||||||
from sqlalchemy.dialects import postgresql
|
from sqlalchemy.dialects import postgresql
|
||||||
|
|
||||||
|
|
||||||
revision = "0418_user_state_enum"
|
revision = "0418_user_state_enum"
|
||||||
down_revision = "0417_change_total_message_limit"
|
down_revision = "0417_change_total_message_limit"
|
||||||
|
|
||||||
@@ -20,25 +20,23 @@ user_state_enum = postgresql.ENUM(
|
|||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
# user_state_enum.create(op.get_bind(), checkfirst=True)
|
user_state_enum.create(op.get_bind(), checkfirst=True)
|
||||||
# op.alter_column(
|
op.alter_column(
|
||||||
# "user",
|
"users",
|
||||||
# "state",
|
"state",
|
||||||
# existing_type=sa.String(),
|
existing_type=sa.String(),
|
||||||
# type_=user_state_enum,
|
type_=user_state_enum,
|
||||||
# existing_nullable=False,
|
existing_nullable=False,
|
||||||
# )
|
)
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
# op.alter_column(
|
op.alter_column(
|
||||||
# "user",
|
"users",
|
||||||
# "state",
|
"state",
|
||||||
# existing_type=user_state_enum,
|
existing_type=user_state_enum,
|
||||||
# type_=sa.String,
|
type_=sa.String,
|
||||||
# existing_nullable=False,
|
existing_nullable=False,
|
||||||
# )
|
)
|
||||||
|
|
||||||
# user_state_enum.drop(op.get_bind(), checkfirst=True)
|
user_state_enum.drop(op.get_bind(), checkfirst=True)
|
||||||
pass
|
|
||||||
|
|||||||
Reference in New Issue
Block a user