getMigrationsFor = (baseSemVer, migrations = databaseMigrations) => {
  const requiredMigrations = migrations
    .filter(migration => {
      const semVer = new SemVer(migration.version)
      return semVer.gt(baseSemVer)
    })
    .sort((a, b) => {
      const aSemVer = new SemVer(a.version)
      const bSemVer = new SemVer(b.version)
      return !aSemVer.ge(bSemVer) ? -1 : 1
    })

  return requiredMigrations
}
@param {import('@home-gallery/common').SemVer} baseSemVer
@param {Migration[]} [migrations]
@returns {Migration}