muse/migrations/20220128012347_fix_unique_constraint/migration.sql
2022-01-27 21:26:00 -05:00

12 lines
340 B
SQL

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