feat: Add indexes to token and userId columns of access tokens
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export async function up(knex) {
|
||||
return knex.schema.table('access_tokens', (table) => {
|
||||
table.index('token');
|
||||
table.index('user_id');
|
||||
});
|
||||
}
|
||||
|
||||
export async function down(knex) {
|
||||
return knex.schema.table('access_tokens', (table) => {
|
||||
table.dropIndex('token');
|
||||
table.dropIndex('user_id');
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user