-- DropForeignKey
ALTER TABLE `delivery_order_status_history` DROP FOREIGN KEY `delivery_order_status_history_deliveryOrderId_fkey`;

-- AlterTable
ALTER TABLE `delivery_order` ADD COLUMN `totalAmount` DECIMAL(10, 2) NOT NULL DEFAULT 0;

-- AddForeignKey
ALTER TABLE `delivery_order_status_history` ADD CONSTRAINT `delivery_order_status_history_deliveryOrderId_fkey` FOREIGN KEY (`deliveryOrderId`) REFERENCES `delivery_order`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
