diff --git a/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js b/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js index 23bcd7c69f..57ae9a2d8a 100644 --- a/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js +++ b/plugins/catalog-backend/migrationsv2/20210302150147_refresh_state.js @@ -187,9 +187,9 @@ exports.up = async function up(knex) { }); // Delete bootstrap location which is no longer required. - await knex.schema.raw( - `DELETE from locations WHERE type = 'bootstrap' AND target = 'bootstrap'`, - ); + await knex('locations') + .where({ type: 'bootstrap', target: 'bootstrap' }) + .delete(); }; /**