Implemented Oauth
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- Make password optional for OAuth users
|
||||
ALTER TABLE "User" ALTER COLUMN "password" DROP NOT NULL;
|
||||
|
||||
-- Add UUID generation extension if not exists
|
||||
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
||||
|
||||
-- Add default UUID generation for profileId
|
||||
ALTER TABLE "User" ALTER COLUMN "profileId" SET DEFAULT uuid_generate_v4();
|
||||
Reference in New Issue
Block a user