/*
  Warnings:

  - You are about to drop the column `templateIndex` on the `templates` table. All the data in the column will be lost.
  - A unique constraint covering the columns `[templateSlug]` on the table `templates` will be added. If there are existing duplicate values, this will fail.
  - Added the required column `templateSlug` to the `templates` table without a default value. This is not possible if the table is not empty.

*/
-- DropIndex
DROP INDEX "templates_templateIndex_key";

-- AlterTable
ALTER TABLE "templates" DROP COLUMN "templateIndex",
ADD COLUMN     "templateSlug" TEXT NOT NULL;

-- CreateIndex
CREATE UNIQUE INDEX "templates_templateSlug_key" ON "templates"("templateSlug");
