Code coverage for migrate.js

This commit is contained in:
Cadence Ember 2024-01-19 16:42:00 +13:00
parent f3cacc89fd
commit c3dc3c89b5
2 changed files with 1 additions and 0 deletions

View file

@ -16,6 +16,7 @@ async function migrate(db) {
let migrationRan = false let migrationRan = false
for (const filename of files) { for (const filename of files) {
/* c8 ignore next - we can't unit test this, but it's run on every real world bridge startup */
if (progress >= filename) continue if (progress >= filename) continue
console.log(`Applying database migration ${filename}`) console.log(`Applying database migration ${filename}`)
if (filename.endsWith(".sql")) { if (filename.endsWith(".sql")) {

0
db/migrations/.baby Normal file
View file