-- DropForeignKey
ALTER TABLE "Ground" DROP CONSTRAINT "Ground_ownerId_fkey";

-- AlterTable
ALTER TABLE "Ground" ALTER COLUMN "ownerId" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "Ground" ADD CONSTRAINT "Ground_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
