From bea538adcc791878c75e58c00a6f77d782e7aa11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uro=C5=A1=20Marolt?= Date: Wed, 31 Jul 2024 06:43:53 +0000 Subject: [PATCH 1/2] fix for oracle cloud db --- backend/src/database/migrations/R__array_accum.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/database/migrations/R__array_accum.sql b/backend/src/database/migrations/R__array_accum.sql index 89dc71b789..13fd9cc389 100644 --- a/backend/src/database/migrations/R__array_accum.sql +++ b/backend/src/database/migrations/R__array_accum.sql @@ -1,5 +1,5 @@ -CREATE AGGREGATE array_accum (ANYARRAY) ( - SFUNC = array_cat, +CREATE OR REPLACE AGGREGATE array_accum (ANYARRAY) ( + SFUNC = array_append, STYPE = ANYARRAY, INITCOND = '{}' - ); +); \ No newline at end of file From 431fd00fcf55d8e4697e22fe368fb970b90378d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uro=C5=A1=20Marolt?= Date: Wed, 31 Jul 2024 06:46:32 +0000 Subject: [PATCH 2/2] fix for oracle cloud db --- backend/src/database/migrations/R__array_accum.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/database/migrations/R__array_accum.sql b/backend/src/database/migrations/R__array_accum.sql index 13fd9cc389..8c9b24adeb 100644 --- a/backend/src/database/migrations/R__array_accum.sql +++ b/backend/src/database/migrations/R__array_accum.sql @@ -1,5 +1,5 @@ -CREATE OR REPLACE AGGREGATE array_accum (ANYARRAY) ( - SFUNC = array_append, - STYPE = ANYARRAY, +CREATE OR REPLACE AGGREGATE array_accum (anycompatiblearray) ( + SFUNC = array_cat, + STYPE = anycompatiblearray, INITCOND = '{}' -); \ No newline at end of file +);