From 95f75d5cf23b705745001c74ccc362664b16a8b1 Mon Sep 17 00:00:00 2001 From: Edward Karavakis Date: Thu, 23 May 2024 10:54:20 +0200 Subject: [PATCH] Fix for ATLASPANDA-981: Increase size of lockedby in jedi_process_lock --- schema/postgres/sqls/patches/0.0.17.patch.sql | 1 + schema/postgres/sqls/pg_PANDA_TABLE.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/schema/postgres/sqls/patches/0.0.17.patch.sql b/schema/postgres/sqls/patches/0.0.17.patch.sql index b3005a5..07cc344 100644 --- a/schema/postgres/sqls/patches/0.0.17.patch.sql +++ b/schema/postgres/sqls/patches/0.0.17.patch.sql @@ -6,6 +6,7 @@ ALTER TABLE doma_panda.jobswaiting4 ADD COLUMN outputfiletype varchar(32); ALTER TABLE doma_pandaarch.jobsarchived ADD COLUMN outputfiletype varchar(32); +ALTER TABLE doma_panda.jedi_process_lock ALTER COLUMN lockedby TYPE varchar(56); -- Update versions UPDATE pandadb_version SET major=0, minor=0, patch=17 where component='JEDI'; UPDATE pandadb_version SET major=0, minor=0, patch=17 where component='SERVER'; diff --git a/schema/postgres/sqls/pg_PANDA_TABLE.sql b/schema/postgres/sqls/pg_PANDA_TABLE.sql index 763299a..f70615d 100644 --- a/schema/postgres/sqls/pg_PANDA_TABLE.sql +++ b/schema/postgres/sqls/pg_PANDA_TABLE.sql @@ -831,7 +831,7 @@ CREATE TABLE jedi_process_lock ( prodsourcelabel varchar(20) NOT NULL, workqueue_id integer NOT NULL, cloud varchar(10) NOT NULL, - lockedby varchar(40), + lockedby varchar(56), lockedtime timestamp, resource_type varchar(56) NOT NULL, component varchar(56) NOT NULL