@@ -0,0 +1,1083 @@
+%22%22%22%0A%0ARevision ID: 0289_precompiled_for_all%0ARevises: 0288_add_go_live_user%0ACreate Date: 2019-05-13 10:44:51.867661%0A%0A%22%22%22%0Afrom alembic import op%0A%0A%0Arevision = '0289_precompiled_for_all'%0Adown_revision = '0288_add_go_live_user'%0A%0A%0Adef upgrade():%0A    op.execute(%22DELETE from service_permissions where permission = 'precompiled_letter'%22)%0A    op.execute(%22DELETE from service_permission_types where name = 'precompiled_letter'%22)%0A%0A%0Adef downgrade():%0A    op.execute(%22INSERT INTO service_permission_types values('precompiled_letter')%22)%0A    op.execute(%22%22%22%0A           INSERT INTO%0A               service_permissions (service_id, permission, created_at)%0A           SELECT%0A               id, '%7Bpermission%7D', now()%0A           FROM%0A               services%0A           WHERE%0A               NOT EXISTS (%0A                   SELECT%0A                   FROM%0A                       service_permissions%0A                   WHERE%0A                       service_id = services.id and%0A                       permission = '%7Bpermission%7D'%0A               )%0A       %22%22%22.format(%0A        permission='precompiled_letter'%0A    ))%0A

remove precompiled_letter permission from the database