Skip to content

Commit a1ce685

Browse files
authored
Update jobs (#95)
1 parent 8cb1975 commit a1ce685

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

  • assets/databases/heimdall/tables

assets/databases/heimdall/tables/jobs.sql

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ create table if not exists jobs
55
job_cluster_id int null,
66
job_status_id smallint not null,
77
job_id varchar(64) not null,
8-
job_name varchar(64) not null,
8+
job_name varchar(300) not null,
99
job_version varchar(32) not null,
1010
job_description varchar(255) null,
11-
job_context varchar(65535) null,
11+
job_context varchar(131070) null,
1212
job_error varchar(1024) null,
1313
username varchar(64) not null,
1414
is_sync boolean not null,
@@ -35,4 +35,11 @@ do $$ begin
3535
if exists (select 1 from information_schema.columns where table_name = 'jobs' and column_name = 'job_context' and character_maximum_length < 131070) then
3636
alter table jobs alter column job_context TYPE VARCHAR(131070);
3737
end if;
38+
end $$;
39+
40+
41+
do $$ begin
42+
if exists (select 1 from information_schema.columns where table_name = 'jobs' and column_name = 'job_name' and character_maximum_length < 300) then
43+
alter table jobs alter column job_name TYPE VARCHAR(300);
44+
end if;
3845
end $$;

0 commit comments

Comments
 (0)