/*
  Warnings:

  - You are about to drop the column `groupType` on the `binom_v2_offer` table. All the data in the column will be lost.
  - Added the required column `binomV2AccountId` to the `binom_v2_offer` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE "binom_v2_group" ADD COLUMN     "groupType" "BinomV2GroupType" NOT NULL DEFAULT 'CAMPAIGN';

-- AlterTable
ALTER TABLE "binom_v2_offer" DROP COLUMN "groupType",
ADD COLUMN     "binomV2AccountId" INTEGER NOT NULL;

-- AddForeignKey
ALTER TABLE "binom_v2_offer" ADD CONSTRAINT "binom_v2_offer_binomV2AccountId_fkey" FOREIGN KEY ("binomV2AccountId") REFERENCES "binom_v2_account"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
