mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-25 03:51:44 -05:00
A letter type was added to the `enum` in the `Template` model at the same it was added to the `Notification` model. But the migration was only done for the `notifications` table, not the `templates` table. See: https://github.com/alphagov/notifications-api/commit/25db1bce#diff-516aab258e161fc65e7564dabd2c625aR19 This commit does the migration to add `letter` as a possible value for the `template_type` column, which is a bit fiddly because `enum`s. Before: ``` notification_api=# select enum_range(null::template_type); enum_range ------------- {sms,email} (1 row) ``` After upgrade: ``` notification_api=# select enum_range(null::template_type); enum_range -------------------- {sms,email,letter} (1 row) ``` After downgrade ``` notification_api=# select enum_range(null::template_type); enum_range ------------- {sms,email} (1 row) ```
Generic single-database configuration.