feat(auth) : notnull
CI / Verify (push) Successful in 1m21s
CI / Build immutable images and deploy (push) Successful in 2m35s

This commit is contained in:
2026-09-22 19:01:34 +07:00 Unverified
parent 41da2478ac
commit 95f491b862
4 changed files with 2826 additions and 2 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ export const accounts = authSchema.table(
"account",
{
id: text("id").primaryKey(),
issuer: text("issuer").notNull(),
issuer: text("issuer"),
accountId: text("account_id").notNull(),
providerId: text("provider_id").notNull(),
userId: text("user_id")
@@ -101,7 +101,7 @@ export const accounts = authSchema.table(
...timestamps,
},
(table) => [
uniqueIndex("account_issuer_unique").on(table.issuer, table.accountId),
uniqueIndex("account_provider_unique").on(table.providerId, table.accountId),
index("account_user_id_idx").on(table.userId),
],
);
@@ -0,0 +1,3 @@
DROP INDEX "auth"."account_issuer_unique";--> statement-breakpoint
ALTER TABLE "auth"."account" ALTER COLUMN "issuer" DROP NOT NULL;--> statement-breakpoint
CREATE UNIQUE INDEX "account_provider_unique" ON "auth"."account" USING btree ("provider_id","account_id");
File diff suppressed because it is too large Load Diff
+7
View File
@@ -344,6 +344,13 @@
"when": 1789823911760,
"tag": "0048_lazy_reptil",
"breakpoints": true
},
{
"idx": 49,
"version": "7",
"when": 1790078318799,
"tag": "0049_better_auth_issuer_cleanup",
"breakpoints": true
}
]
}