/*
  Warnings:

  - You are about to drop the column `name` on the `user_rule_profit_report_entity` table. All the data in the column will be lost.
  - Made the column `setId` on table `user_rule_profit_report_entity` required. This step will fail if there are existing NULL values in that column.

*/
-- DropForeignKey
ALTER TABLE "user_rule_profit_report_entity" DROP CONSTRAINT "user_rule_profit_report_entity_setId_fkey";

-- AlterTable
ALTER TABLE "user_rule_profit_report_entity" DROP COLUMN "name",
ALTER COLUMN "setId" SET NOT NULL;

-- AddForeignKey
ALTER TABLE "user_rule_profit_report_entity" ADD CONSTRAINT "user_rule_profit_report_entity_setId_fkey" FOREIGN KEY ("setId") REFERENCES "tiered_payout_target_set"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
