actaeon/migrations/sqls/20240328113145-modify-team-user-ext-fk-up.sql
2024-03-30 06:29:55 -04:00

6 lines
199 B
SQL

ALTER TABLE actaeon_user_ext
DROP CONSTRAINT fk_team;
ALTER TABLE actaeon_user_ext
ADD CONSTRAINT fk_team FOREIGN KEY(team) REFERENCES actaeon_teams(uuid)
ON DELETE SET NULL ON UPDATE CASCADE;