|
| 1 | +/* |
| 2 | + Warnings: |
| 3 | +
|
| 4 | + - You are about to drop the column `access_token` on the `account` table. All the data in the column will be lost. |
| 5 | + - You are about to drop the column `expires_at` on the `account` table. All the data in the column will be lost. |
| 6 | + - You are about to drop the column `id_token` on the `account` table. All the data in the column will be lost. |
| 7 | + - You are about to drop the column `refresh_token` on the `account` table. All the data in the column will be lost. |
| 8 | + - You are about to drop the column `session_state` on the `account` table. All the data in the column will be lost. |
| 9 | + - You are about to drop the column `token_type` on the `account` table. All the data in the column will be lost. |
| 10 | + - You are about to drop the column `refresh_token` on the `session` table. All the data in the column will be lost. |
| 11 | + - A unique constraint covering the columns `[refreshToken]` on the table `account` will be added. If there are existing duplicate values, this will fail. |
| 12 | + - A unique constraint covering the columns `[accessToken]` on the table `account` will be added. If there are existing duplicate values, this will fail. |
| 13 | + - A unique constraint covering the columns `[refreshToken]` on the table `session` will be added. If there are existing duplicate values, this will fail. |
| 14 | +
|
| 15 | +*/ |
| 16 | +-- DropIndex |
| 17 | +DROP INDEX "account_access_token_key"; |
| 18 | + |
| 19 | +-- DropIndex |
| 20 | +DROP INDEX "account_refresh_token_key"; |
| 21 | + |
| 22 | +-- DropIndex |
| 23 | +DROP INDEX "session_refresh_token_key"; |
| 24 | + |
| 25 | +-- AlterTable |
| 26 | +ALTER TABLE "account" DROP COLUMN "access_token", |
| 27 | +DROP COLUMN "expires_at", |
| 28 | +DROP COLUMN "id_token", |
| 29 | +DROP COLUMN "refresh_token", |
| 30 | +DROP COLUMN "session_state", |
| 31 | +DROP COLUMN "token_type", |
| 32 | +ADD COLUMN "accessToken" TEXT, |
| 33 | +ADD COLUMN "expiresAt" INTEGER, |
| 34 | +ADD COLUMN "idToken" TEXT, |
| 35 | +ADD COLUMN "refreshToken" TEXT, |
| 36 | +ADD COLUMN "sessionState" TEXT, |
| 37 | +ADD COLUMN "tokenType" TEXT; |
| 38 | + |
| 39 | +-- AlterTable |
| 40 | +ALTER TABLE "session" DROP COLUMN "refresh_token", |
| 41 | +ADD COLUMN "refreshToken" TEXT, |
| 42 | +ADD COLUMN "sessionType" TEXT; |
| 43 | + |
| 44 | +-- CreateIndex |
| 45 | +CREATE UNIQUE INDEX "account_refreshToken_key" ON "account"("refreshToken"); |
| 46 | + |
| 47 | +-- CreateIndex |
| 48 | +CREATE UNIQUE INDEX "account_accessToken_key" ON "account"("accessToken"); |
| 49 | + |
| 50 | +-- CreateIndex |
| 51 | +CREATE UNIQUE INDEX "session_refreshToken_key" ON "session"("refreshToken"); |
0 commit comments