2024-01-11 17:48:08 -06:00

6 lines
232 B
SQL

-- 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;