mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-29 08:46:22 +02:00
♻️ Switch to next-auth for handling authentication (#899)
This commit is contained in:
parent
5f9e428432
commit
6fa66da681
65 changed files with 1514 additions and 1586 deletions
|
@ -0,0 +1,28 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "users" ADD COLUMN "email_verified" TIMESTAMP(3),
|
||||
ADD COLUMN "locale" TEXT,
|
||||
ADD COLUMN "time_format" "time_format",
|
||||
ADD COLUMN "time_zone" TEXT,
|
||||
ADD COLUMN "week_start" INTEGER;
|
||||
|
||||
-- Copy user preferences from old table
|
||||
UPDATE "users" u
|
||||
SET
|
||||
"time_zone" = up."time_zone",
|
||||
"week_start" = up."week_start",
|
||||
"time_format" = up."time_format"
|
||||
FROM "user_preferences" up
|
||||
WHERE u.id = up."user_id";
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "verification_tokens" (
|
||||
"identifier" TEXT NOT NULL,
|
||||
"token" TEXT NOT NULL,
|
||||
"expires" TIMESTAMP(3) NOT NULL
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "verification_tokens_token_key" ON "verification_tokens"("token");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "verification_tokens_identifier_token_key" ON "verification_tokens"("identifier", "token");
|
Loading…
Add table
Add a link
Reference in a new issue