mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-29 13:15:46 +00:00
feat: implement multiple oauth providers in the frontend
This commit is contained in:
1
internal/assets/migrations/000002_oauth_name.down.sql
Normal file
1
internal/assets/migrations/000002_oauth_name.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "sessions" DROP COLUMN "oauth_name";
|
||||
8
internal/assets/migrations/000002_oauth_name.up.sql
Normal file
8
internal/assets/migrations/000002_oauth_name.up.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE "sessions" ADD COLUMN "oauth_name" TEXT;
|
||||
|
||||
UPDATE
|
||||
"sessions"
|
||||
SET
|
||||
"oauth_name" = "Generic"
|
||||
WHERE
|
||||
"oauth_name" IS NULL AND "provider" IS NOT NULL;
|
||||
Reference in New Issue
Block a user