mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 06:32:11 -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,
|
||||
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",
|
||||
|
||||
Reference in New Issue
Block a user