Skip to content

Commit

Permalink
fix(nhost): comment out user_org_groups SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Feb 6, 2024
1 parent ac4009b commit cee5c0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions nhost/migrations/default/1684206403640_init/up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,6 @@ ALTER TABLE ONLY public.rules
ADD CONSTRAINT rules_protocol_fkey FOREIGN KEY (protocol) REFERENCES public.protocol(value) ON UPDATE RESTRICT ON DELETE RESTRICT;
ALTER TABLE ONLY public.user_org_groups
ADD CONSTRAINT user_org_groups_organization_fkey FOREIGN KEY (organization) REFERENCES public.organization(value) ON UPDATE RESTRICT ON DELETE RESTRICT;
-- run this manuvaly after all services started for the first time. because by the time `auth.users` may not be created yet.
-- ALTER TABLE ONLY public.user_org_groups
-- ADD CONSTRAINT user_org_groups_user_id_fkey FOREIGN KEY (user_id) REFERENCES auth.users(id) ON UPDATE RESTRICT ON DELETE RESTRICT;

This file was deleted.

This file was deleted.

0 comments on commit cee5c0a

Please sign in to comment.