muse/migrations/20220128012347_fix_unique_constraint/migration.sql

12 lines
340 B
MySQL
Raw Permalink Normal View History

/*
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");