mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +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
|
updated INTEGER
|
||||||
);
|
);
|
||||||
`).run()
|
`).run()
|
||||||
|
await this.db.prepare(`
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_user_id ON user(id);
|
||||||
|
`).run()
|
||||||
logger.success(`init user table`)
|
logger.success(`init user table`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user