From f1bbc6da109400f085d33e30ec30803578f64fe3 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Thu, 3 Jun 2021 09:50:37 +0200 Subject: [PATCH 1/2] catalog/next: Keep bootstrap location Signed-off-by: Johan Haals --- .../migrationsv2/20210302150147_refresh_state.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js b/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js index 2258017965..4e6cf4f282 100644 --- a/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js +++ b/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js @@ -191,11 +191,6 @@ 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('locations') - .where({ type: 'bootstrap', target: 'bootstrap' }) - .delete(); }; /** From 63a432e9cac3a8868120c79a3bed1bf92893cac7 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Thu, 3 Jun 2021 09:56:59 +0200 Subject: [PATCH 2/2] Add changeset Signed-off-by: Johan Haals --- .changeset/tender-months-count.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tender-months-count.md diff --git a/.changeset/tender-months-count.md b/.changeset/tender-months-count.md new file mode 100644 index 0000000000..9f76186409 --- /dev/null +++ b/.changeset/tender-months-count.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-backend': patch +--- + +Skip deletion of bootstrap location when running the new catalog.