6 lines
252 B
MySQL
6 lines
252 B
MySQL
|
-- DropForeignKey
|
||
|
ALTER TABLE "Membership" DROP CONSTRAINT "Membership_teamId_fkey";
|
||
|
|
||
|
-- AddForeignKey
|
||
|
ALTER TABLE "Membership" ADD CONSTRAINT "Membership_teamId_fkey" FOREIGN KEY ("teamId") REFERENCES "Team"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|