MarseyWorld/migrations/20240211-add-owner-id-for-n...

5 lines
157 B
MySQL
Raw Normal View History

alter table groups add column owner_id int;
alter table only groups
add constraint groups_user_fkey foreign key (owner_id) references public.users(id);