/* Warnings: - You are about to drop the column `accessToken` on the `Session` table. All the data in the column will be lost. - You are about to drop the column `sessionToken` on the `Session` table. All the data in the column will be lost. */ -- RedefineTables PRAGMA defer_foreign_keys=ON; PRAGMA foreign_keys=OFF; CREATE TABLE "new_Session" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "expiresAt" DATETIME NOT NULL, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL, "userId" INTEGER NOT NULL, CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); INSERT INTO "new_Session" ("createdAt", "expiresAt", "id", "updatedAt", "userId") SELECT "createdAt", "expiresAt", "id", "updatedAt", "userId" FROM "Session"; DROP TABLE "Session"; ALTER TABLE "new_Session" RENAME TO "Session"; PRAGMA foreign_keys=ON; PRAGMA defer_foreign_keys=OFF;