mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 22:36:10 +02:00
- Fix bugs related to orphan teams on profile deletion - Separate session based profile-id param from api user provided
3 lines
254 B
SQL
3 lines
254 B
SQL
ALTER TABLE team_profile_rel DROP CONSTRAINT team_profile_rel_pkey;
|
|
ALTER TABLE team_profile_rel ADD COLUMN id uuid DEFAULT uuid_generate_v4() PRIMARY KEY;
|
|
ALTER TABLE team_profile_rel ADD CONSTRAINT team_profile_rel_unique UNIQUE (team_id, profile_id);
|