fix for failing tests

This commit is contained in:
Aditi Anand
2024-03-20 10:57:04 -04:00
parent 5d15560538
commit 8bc1091f73
6 changed files with 19 additions and 12 deletions

View File

@@ -7,8 +7,8 @@ Create Date: 2023-05-23 10:03:10.485368
"""
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
from sqlalchemy import text
from sqlalchemy.dialects import postgresql
revision = "0395_remove_intl_letters_perm"
down_revision = "0394_remove_contact_list"

View File

@@ -469,7 +469,8 @@ def upgrade():
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("""
op.execute(
"""
delete from
service_permissions
where
@@ -480,7 +481,8 @@ def upgrade():
'international_letters',
'broadcast'
);
""")
"""
)
op.alter_column(
"service_permissions",
"permission",