Catalog/next: Drop bootstrap from locations table

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-05-20 10:06:59 +02:00
parent f2cb8c8b61
commit 508c3ad38c
@@ -185,6 +185,11 @@ exports.up = async function up(knex) {
table.index(['key'], 'search_key_idx');
table.index(['value'], 'search_value_idx');
});
// Delete bootstrap location which is no longer required.
await knex.schema.raw(
`DELETE from locations WHERE type = 'bootstrap' AND target = 'bootstrap'`,
);
};
/**