/*
  Warnings:

  - A unique constraint covering the columns `[name]` on the table `keyword` will be added. If there are existing duplicate values, this will fail.
  - Added the required column `externalId` to the `adscom_rsoc_page` table without a default value. This is not possible if the table is not empty.
  - Added the required column `adscomRsocPageId` to the `adscom_rsoc_page_content` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE "adscom_rsoc_page" ADD COLUMN     "externalId" INTEGER NOT NULL;

-- AlterTable
ALTER TABLE "adscom_rsoc_page_content" ADD COLUMN     "adscomRsocPageId" INTEGER NOT NULL;

-- CreateIndex
CREATE UNIQUE INDEX "keyword_name_key" ON "keyword"("name");

-- AddForeignKey
ALTER TABLE "adscom_rsoc_page_content" ADD CONSTRAINT "adscom_rsoc_page_content_adscomRsocPageId_fkey" FOREIGN KEY ("adscomRsocPageId") REFERENCES "adscom_rsoc_page"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
