Make migration compatible with EnterpriseDB 9.4

remotes/origin/issue/4795/notification_even_they_are_disabled
Yongdae Hwang 2016-10-17 17:00:42 +09:00 committed by David Barragán Merino
parent 1bd8b59ea2
commit c334836ef2
1 changed files with 2 additions and 2 deletions

View File

@ -12,11 +12,11 @@ WITH status_update AS(
WITH status_update AS(
WITH history_entries AS (
SELECT
diff#>>'{status, 1}' new_status_id,
diff #>>'{status, 1}' new_status_id,
regexp_split_to_array(key, ':') as split_key,
created_at as date
FROM history_historyentry
WHERE diff#>>'{status, 1}' != ''
WHERE diff #>>'{status, 1}' != ''
)
SELECT
split_key[2] as object_id,