-- DropForeignKey
ALTER TABLE "CreditHistory" DROP CONSTRAINT "CreditHistory_orderId_fkey";

-- AlterTable
ALTER TABLE "CreditHistory" ALTER COLUMN "orderId" DROP NOT NULL;

-- AddForeignKey
ALTER TABLE "CreditHistory" ADD CONSTRAINT "CreditHistory_orderId_fkey" FOREIGN KEY ("orderId") REFERENCES "Order"("id") ON DELETE SET NULL ON UPDATE CASCADE;
