Make migration compatible with EnterpriseDB 9.4
parent
1bd8b59ea2
commit
c334836ef2
|
@ -12,11 +12,11 @@ WITH status_update AS(
|
||||||
WITH status_update AS(
|
WITH status_update AS(
|
||||||
WITH history_entries AS (
|
WITH history_entries AS (
|
||||||
SELECT
|
SELECT
|
||||||
diff#>>'{status, 1}' new_status_id,
|
diff #>>'{status, 1}' new_status_id,
|
||||||
regexp_split_to_array(key, ':') as split_key,
|
regexp_split_to_array(key, ':') as split_key,
|
||||||
created_at as date
|
created_at as date
|
||||||
FROM history_historyentry
|
FROM history_historyentry
|
||||||
WHERE diff#>>'{status, 1}' != ''
|
WHERE diff #>>'{status, 1}' != ''
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
split_key[2] as object_id,
|
split_key[2] as object_id,
|
||||||
|
|
Loading…
Reference in New Issue