Exemple #1
0
  public void init() {
    if (mdsSqlProperties == null) {
      mdsSqlProperties = getDataNucleusProperties();
    }

    // Create database if it doesn't exists
    sqlDBManager.createDatabase(mdsSqlProperties.getProperty("javax.jdo.option.ConnectionURL"));
  }
Exemple #2
0
 public String[] getFlywayLocations() {
   String driverName = sqlDBManager.getChosenSQLDriver();
   String sqlMigrationPath =
       driverName.equals(Constants.Config.MYSQL_DRIVER_CLASSNAME)
           ? FLYWAY_MYSQL_MIGRATION_PATH
           : FLYWAY_DEFAULT_MIGRATION_PATH;
   return new String[] {sqlMigrationPath, FLYWAY_JAVA_MIGRATION_PATH};
 }