cloud-api/prisma/migrations/20240909210949_/migration.sql
2024-12-29 21:29:59 +01:00

14 lines
416 B
SQL

/*
Warnings:
- A unique constraint covering the columns `[secretToken]` on the table `Device` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterTable
ALTER TABLE "Device" ADD COLUMN "secretToken" TEXT,
ADD COLUMN "tempToken" TEXT,
ADD COLUMN "tempTokenExpiresAt" TIMESTAMP(3);
-- CreateIndex
CREATE UNIQUE INDEX "Device_secretToken_key" ON "Device"("secretToken");