Files
quicklanch-server/prisma/migrations/20260411143108_fix_relation/migration.sql
T

6 lines
256 B
SQL
Raw Normal View History

2026-04-12 22:47:56 +06:00
-- DropForeignKey
ALTER TABLE "Order" DROP CONSTRAINT "Order_shopAccountId_fkey";
-- AddForeignKey
ALTER TABLE "Order" ADD CONSTRAINT "Order_shopAccountId_fkey" FOREIGN KEY ("shopAccountId") REFERENCES "Account"("id") ON DELETE CASCADE ON UPDATE CASCADE;