fix: add an index for expirey
This commit is contained in:
parent
142dbf9914
commit
bc46736863
1 changed files with 2 additions and 3 deletions
|
@ -57,9 +57,8 @@ pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {
|
|||
.execute(&pool)
|
||||
.await?;
|
||||
|
||||
sqlx::query("CREATE INDEX IF NOT EXISTS index_auth_code ON accounts_new (auth_code)")
|
||||
.execute(&pool)
|
||||
.await?;
|
||||
sqlx::query("CREATE INDEX IF NOT EXISTS index_auth_code ON accounts_new (auth_code)").execute(&pool).await?;
|
||||
sqlx::query("CREATE INDEX IF NOT EXISTS index_date_expiry ON accounts_new (date_expiry)").execute(&pool).await?;
|
||||
|
||||
// this is for active use
|
||||
sqlx::query(
|
||||
|
|
Loading…
Reference in a new issue