Skip to content

Commit

Permalink
feat: add index for user table
Browse files Browse the repository at this point in the history
  • Loading branch information
ourongxing committed Nov 27, 2024
1 parent 53e57c1 commit 89264a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/database/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export class UserTable {
updated INTEGER
);
`).run()
await this.db.prepare(`
CREATE INDEX IF NOT EXISTS idx_user_id ON user(id);
`).run()
logger.success(`init user table`)
}

Expand Down

0 comments on commit 89264a9

Please sign in to comment.