From 889ac7c8a423baf588169250084db8227c3e427f Mon Sep 17 00:00:00 2001 From: Edward Karavakis Date: Tue, 28 May 2024 11:24:23 +0200 Subject: [PATCH] Fixing partitioning error: ERROR: Control column given (ins_utc_tstamp) for parent table (doma_panda.jedi_job_retry_history) does not exist or must be set to NOT NULL --- schema/postgres/sqls/pg_PANDA_TABLE.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/postgres/sqls/pg_PANDA_TABLE.sql b/schema/postgres/sqls/pg_PANDA_TABLE.sql index f70615d..1ffe8d2 100644 --- a/schema/postgres/sqls/pg_PANDA_TABLE.sql +++ b/schema/postgres/sqls/pg_PANDA_TABLE.sql @@ -781,7 +781,7 @@ CREATE TABLE jedi_job_retry_history ( jeditaskid bigint NOT NULL, oldpandaid bigint NOT NULL, newpandaid bigint NOT NULL, - ins_utc_tstamp timestamp DEFAULT ((CURRENT_TIMESTAMP(0) AT TIME ZONE 'UTC')), + ins_utc_tstamp timestamp NOT NULL DEFAULT ((CURRENT_TIMESTAMP(0) AT TIME ZONE 'UTC')), relationtype varchar(16), originpandaid bigint ) PARTITION BY RANGE (ins_utc_tstamp) ;