]> git.ipfire.org Git - pbs.git/commitdiff
build groups: Fix database field names of ownership
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 15:06:46 +0000 (15:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 15:06:46 +0000 (15:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.sql

index cf7c7803980a093922670aa1bf5669aded5501f9..de5d7ac59aa9821da82ae892fa0beae6a7c48116 100644 (file)
@@ -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);
 
 
 --