19 lines
577 B
SQL
19 lines
577 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the column `sessionToken` on the `Session` table. All the data in the column will be lost.
|
|
- A unique constraint covering the columns `[token]` on the table `Session` will be added. If there are existing duplicate values, this will fail.
|
|
|
|
*/
|
|
-- DropIndex
|
|
DROP INDEX "Session_sessionToken_key";
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "Session" DROP COLUMN "sessionToken",
|
|
ADD COLUMN "ipAddress" TEXT,
|
|
ADD COLUMN "token" TEXT,
|
|
ADD COLUMN "userAgent" TEXT;
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "Session_token_key" ON "Session"("token");
|