use lodash.once instead of memoize, and skip unnecessary PK index

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-11-06 09:58:15 +01:00
parent e72d9ba9f6
commit 3f447ec3e1
2 changed files with 2 additions and 6 deletions
@@ -50,7 +50,6 @@ exports.up = async function up(knex) {
.dateTime('current_run_expires_at')
.nullable()
.comment('The time that the current task run will time out');
table.index(['id'], 'backstage_backend_tasks__tasks__id_idx');
});
};
@@ -61,8 +60,5 @@ exports.down = async function down(knex) {
//
// tasks
//
await knex.schema.alterTable('backstage_backend_tasks__tasks', table => {
table.dropIndex([], 'backstage_backend_tasks__tasks__id_idx');
});
await knex.schema.dropTable('backstage_backend_tasks__tasks');
};