mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-18 18:59:15 +08:00
feat: add index for user table
This commit is contained in:
parent
53e57c1d2f
commit
89264a972e
@ -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`)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user