aboutsummaryrefslogtreecommitdiff
path: root/migrations/20220128012347_fix_unique_constraint/migration.sql
blob: f777d06ce92d3d3b639769ae65cb7fe6d1831c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
/*
  Warnings:

  - A unique constraint covering the columns `[guildId,name]` on the table `FavoriteQuery` will be added. If there are existing duplicate values, this will fail.

*/
-- DropIndex
DROP INDEX "FavoriteQuery_name_key";

-- CreateIndex
CREATE UNIQUE INDEX "FavoriteQuery_guildId_name_key" ON "FavoriteQuery"("guildId", "name");