feat: add updated_at index in executions

This commit is contained in:
Ali BARIN
2023-10-26 13:52:20 +02:00
committed by Faruk AYDIN
parent 2760526def
commit 14b7053ed8
@@ -0,0 +1,13 @@
import { Knex } from 'knex';
export async function up(knex: Knex): Promise<void> {
await knex.schema.table('executions', (table) => {
table.index('updated_at');
});
}
export async function down(knex: Knex): Promise<void> {
await knex.schema.table('executions', (table) => {
table.dropIndex('updated_at');
});
}