feat(db): add postgresql support

This commit is contained in:
Scott McKendry
2026-05-23 17:20:02 +12:00
parent 8849d7e00f
commit f642298ba7
34 changed files with 1470 additions and 9 deletions
@@ -0,0 +1,9 @@
ALTER TABLE "sessions" ADD COLUMN "oauth_name" TEXT NOT NULL DEFAULT '';
UPDATE "sessions"
SET "oauth_name" = CASE
WHEN LOWER("provider") = 'github' THEN 'GitHub'
WHEN LOWER("provider") = 'google' THEN 'Google'
ELSE UPPER(SUBSTR("provider", 1, 1)) || SUBSTR("provider", 2)
END
WHERE "oauth_name" = '' AND "provider" IS NOT NULL;