Make server_id in job_run type text since it is nullable. (#2177)

This commit is contained in:
Todd authored and GitHub committed 2022-06-13 12:55:05 -07:00
1 parent 15138b897e
commit 4b526538af
1 file changed
+5 -1
@@ -199,9 +199,13 @@ alter table session_connection
-- Finally, neither jobs nor servers are exposed out of boundary so the risk of
-- losing data that would be useful later on is diminished.
alter table job_run
add column controller_id wt_private_id,
add column controller_id text,
drop column server_id;
alter table job_run
add constraint controller_id_must_be_at_least_10_characters
check(
length(trim(controller_id)) > 10
),
add constraint server_controller_fkey
foreign key (controller_id)
references server_controller (private_id)