/** * Write the migration xml. */ protected boolean writeMigrationXml(Migration dbMigration, File resourcePath, String fullVersion) { String modelFile = fullVersion + migrationConfig.getModelSuffix(); File file = new File(resourcePath, modelFile); if (file.exists()) { return false; } String comment = migrationConfig.isIncludeGeneratedFileComment() ? GENERATED_COMMENT : null; MigrationXmlWriter xmlWriter = new MigrationXmlWriter(comment); xmlWriter.write(dbMigration, file); return true; }
private Request() { this.migrationDir = getMigrationDirectory(); this.modelDir = getModelDirectory(migrationDir); this.migrationModel = new MigrationModel(modelDir, migrationConfig.getModelSuffix()); this.migrated = migrationModel.read(); this.currentModel = new CurrentModel(server, constraintNaming); this.current = currentModel.read(); }