From: Michael Tremer Date: Mon, 10 Feb 2025 15:06:46 +0000 (+0000) Subject: build groups: Fix database field names of ownership X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbd5d2a482b923d82c4e92a11a3ef3a14af1fc38;p=pbs.git build groups: Fix database field names of ownership Signed-off-by: Michael Tremer --- diff --git a/src/database.sql b/src/database.sql index cf7c7803..de5d7ac5 100644 --- a/src/database.sql +++ b/src/database.sql @@ -84,9 +84,9 @@ CREATE TABLE public.build_groups ( id integer NOT NULL, uuid uuid DEFAULT gen_random_uuid() NOT NULL, created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, - created_by integer, + created_by_id integer, deleted_at timestamp without time zone, - deleted_by integer, + deleted_by_id integer, finished_at timestamp without time zone, failed boolean DEFAULT false NOT NULL, tested_build_id integer @@ -2018,7 +2018,7 @@ ALTER TABLE ONLY public.build_bugs -- ALTER TABLE ONLY public.build_groups - ADD CONSTRAINT build_groups_created_by FOREIGN KEY (created_by) REFERENCES public.users(id); + ADD CONSTRAINT build_groups_created_by FOREIGN KEY (created_by_id) REFERENCES public.users(id); -- @@ -2026,7 +2026,7 @@ ALTER TABLE ONLY public.build_groups -- ALTER TABLE ONLY public.build_groups - ADD CONSTRAINT build_groups_deleted_by FOREIGN KEY (deleted_by) REFERENCES public.users(id); + ADD CONSTRAINT build_groups_deleted_by FOREIGN KEY (deleted_by_id) REFERENCES public.users(id); --