mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
15 lines
617 B
SQL
15 lines
617 B
SQL
/*
|
|
Warnings:
|
|
|
|
- The primary key for the `APIToken` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
|
- The required column `id` was added to the `APIToken` table with a prisma-level default value. This is not possible if the table is not empty. Please add this column as optional, then populate it before making it required.
|
|
|
|
*/
|
|
-- AlterTable
|
|
ALTER TABLE "APIToken" DROP CONSTRAINT "APIToken_pkey",
|
|
ADD COLUMN "id" TEXT NOT NULL,
|
|
ADD CONSTRAINT "APIToken_pkey" PRIMARY KEY ("id");
|
|
|
|
-- CreateIndex
|
|
CREATE INDEX "APIToken_token_idx" ON "APIToken"("token");
|