fix: try to fix the 2FA error
This commit is contained in:
parent
98338e80c3
commit
1784650fa4
3 changed files with 3131 additions and 0 deletions
1
app/drizzle/20260522111604_chunky_namora/migration.sql
Normal file
1
app/drizzle/20260522111604_chunky_namora/migration.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE `two_factor` ADD `verified` integer DEFAULT false NOT NULL;
|
||||
3129
app/drizzle/20260522111604_chunky_namora/snapshot.json
Normal file
3129
app/drizzle/20260522111604_chunky_namora/snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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)],
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue