Replace knex.schema with knex

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-05-20 13:25:55 +02:00
parent 508c3ad38c
commit d349a31909
@@ -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();
};
/**