fix: try to fix the 2FA error

This commit is contained in:
Nico 2026-05-22 13:29:36 +02:00
parent 98338e80c3
commit 1784650fa4
3 changed files with 3131 additions and 0 deletions

View file

@ -0,0 +1 @@
ALTER TABLE `two_factor` ADD `verified` integer DEFAULT false NOT NULL;

File diff suppressed because it is too large Load diff

View file

@ -505,6 +505,7 @@ export const twoFactor = sqliteTable(
userId: text("user_id")
.notNull()
.references(() => usersTable.id, { onDelete: "cascade" }),
verified: integer("verified", { mode: "boolean" }).notNull().default(false),
},
(table) => [index("twoFactor_secret_idx").on(table.secret), index("twoFactor_userId_idx").on(table.userId)],
);