6 lines
232 B
MySQL
Raw Normal View History

2024-01-11 17:45:17 -06:00
-- DropForeignKey
ALTER TABLE "Item" DROP CONSTRAINT "Item_subName_fkey";
-- AddForeignKey
ALTER TABLE "Item" ADD CONSTRAINT "Item_subName_fkey" FOREIGN KEY ("subName") REFERENCES "Sub"("name") ON DELETE CASCADE ON UPDATE CASCADE;