mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-16 18:22:17 -05:00
Helping the migration succeed!
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -468,6 +468,19 @@ def upgrade():
|
|||||||
existing_nullable=False,
|
existing_nullable=False,
|
||||||
postgresql_using=enum_using("notification_type", NotificationType),
|
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(
|
op.alter_column(
|
||||||
"service_permissions",
|
"service_permissions",
|
||||||
"permission",
|
"permission",
|
||||||
|
|||||||
Reference in New Issue
Block a user