ifms-pti/server/prisma/migrations/20220829163049_enable_ap_delete/migration.sql

6 lines
304 B
MySQL
Raw Normal View History

2022-08-29 16:54:45 +00:00
-- DropForeignKey
ALTER TABLE "AccessPointStats" DROP CONSTRAINT "AccessPointStats_accessPointId_fkey";
-- AddForeignKey
ALTER TABLE "AccessPointStats" ADD CONSTRAINT "AccessPointStats_accessPointId_fkey" FOREIGN KEY ("accessPointId") REFERENCES "AccessPoint"("id") ON DELETE CASCADE ON UPDATE CASCADE;