From c22c77ade6b7f4da368e324c4cb81651e25645cd Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 6 Oct 2022 08:37:32 +0200 Subject: [PATCH] same as last commit --- sql/20220920-award-granted-by.sql | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 sql/20220920-award-granted-by.sql diff --git a/sql/20220920-award-granted-by.sql b/sql/20220920-award-granted-by.sql deleted file mode 100644 index 662118094..000000000 --- a/sql/20220920-award-granted-by.sql +++ /dev/null @@ -1,5 +0,0 @@ -alter table award_relationships add column granted_by int; -ALTER TABLE ONLY public.award_relationships - ADD CONSTRAINT award_granted_by_fkey FOREIGN KEY (granted_by) REFERENCES public.users(id); -update award_relationships set granted_by=1 where granted=true; -alter table award_relationships drop column granted;