{"size": 834, "ext": "js", "max_stars_repo_path": "flyway/conf/flyway.js", "max_stars_repo_name": "healthmap/epicore-open", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "flyway/conf/flyway.js", "max_issues_repo_name": "healthmap/epicore-open", "max_issues_repo_issues_event_min_datetime": "2021-11-15T17:55:40.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-12T01:02:53.000Z", "max_forks_repo_path": "flyway/conf/flyway.js", "max_forks_repo_name": "healthmap/epicore-open", "max_forks_repo_forks_event_min_datetime": "2018-08-20T18:19:10.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-20T18:19:10.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 30.8888888889, "max_line_length": 77, "alphanum_fraction": 0.6714628297}
require('dotenv').config();

//requires root username and password
// This can be a function or an object literal.
module.exports = function () {
  const hostspec = process.env.hostspec;
  const username = process.env.flywayusername;
  const password = process.env.flywaypassword;
  const dbName = process.env.database;
  let flywayURL = 'jdbc:mysql://' + hostspec;
  console.log('Connecting to:------>', hostspec, username, password, dbName);
  return {
    flywayArgs: {
      url: flywayURL,
      schemas: dbName,
      locations: 'filesystem:flyway/release-*/migrations',
      user: username,
      password: password,
      sqlMigrationSuffixes: '.sql',
      baselineVersion: '1.0.0',
      baselineOnMigrate: true,
      ignoreMissingMigrations: true
    },
    version: '7.15.0', //community edition support for 5.7
  };
};
