mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-18 18:51:13 +10:00
21 lines
691 B
SQL
21 lines
691 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `userPlatformId` on the `PlatformLink` table. All the data in the column will be lost.
|
|
|
|
*/
|
|
-- DropForeignKey
|
|
ALTER TABLE "public"."PlatformLink" DROP CONSTRAINT "PlatformLink_userPlatformId_fkey";
|
|
|
|
-- DropIndex
|
|
DROP INDEX "public"."GameTag_name_idx";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "public"."PlatformLink" DROP COLUMN "userPlatformId";
|
|
|
|
-- CreateIndex
|
|
CREATE INDEX "GameTag_name_idx" ON "public"."GameTag" USING GIST ("name" gist_trgm_ops(siglen=32));
|
|
|
|
-- AddForeignKey
|
|
ALTER TABLE "public"."PlatformLink" ADD CONSTRAINT "PlatformLink_id_fkey" FOREIGN KEY ("id") REFERENCES "public"."UserPlatform"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|