mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
Due to a bug in 2016, there are some rows without a template id.
For that case use a default template id.
This commit is contained in:
@@ -597,7 +597,7 @@ def migrate_data_to_ft_notification_status(start_date, end_date):
|
||||
notification_status, created_at, notification_count)
|
||||
select
|
||||
(n.created_at at time zone 'UTC' at time zone 'Europe/London')::timestamp::date as bst_date,
|
||||
n.template_id,
|
||||
coalesce(n.template_id, '00000000-0000-0000-0000-000000000000') as template_id,
|
||||
n.service_id,
|
||||
coalesce(n.job_id, '00000000-0000-0000-0000-000000000000') as job_id,
|
||||
n.notification_type,
|
||||
|
||||
Reference in New Issue
Block a user