mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 14:42:24 -05:00
Latest utils commit updates sync with main
This commit is contained in:
@@ -468,6 +468,21 @@ def upgrade():
|
||||
existing_nullable=False,
|
||||
postgresql_using=enum_using("notification_type", NotificationType),
|
||||
)
|
||||
# Clobbering bad data here. These are values we don't use any more, and anything with them is unnecessary.
|
||||
op.execute(
|
||||
"""
|
||||
delete from
|
||||
service_permissions
|
||||
where
|
||||
permission in (
|
||||
'letter',
|
||||
'letters_as_pdf',
|
||||
'upload_letters',
|
||||
'international_letters',
|
||||
'broadcast'
|
||||
);
|
||||
"""
|
||||
)
|
||||
op.alter_column(
|
||||
"service_permissions",
|
||||
"permission",
|
||||
|
||||
20
migrations/versions/0411_add_login_uuid.py
Normal file
20
migrations/versions/0411_add_login_uuid.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0411_add_login_uuid
|
||||
Revises: 410_enums_for_everything
|
||||
Create Date: 2023-04-24 11:35:22.873930
|
||||
|
||||
"""
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision = "0411_add_login_uuid"
|
||||
down_revision = "0410_enums_for_everything"
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column("users", sa.Column("login_uuid", sa.Text))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column("users", "login_uuid")
|
||||
Reference in New Issue
Block a user