public void info() throws FlywayException { MigrationInfoService info = flyway.info(); System.out.println(MigrationInfoDumper.dumpToAsciiTable(info.all())); }
flyway.validate(); } else if ("info".equals(operation)) { LOG.info("\n" + MigrationInfoDumper.dumpToAsciiTable(flyway.info().all())); } else if ("repair".equals(operation)) { flyway.repair();
@ReadOperation public ApplicationFlywayBeans flywayBeans() { ApplicationContext target = this.context; Map<String, ContextFlywayBeans> contextFlywayBeans = new HashMap<>(); while (target != null) { Map<String, FlywayDescriptor> flywayBeans = new HashMap<>(); target.getBeansOfType(Flyway.class).forEach((name, flyway) -> flywayBeans .put(name, new FlywayDescriptor(flyway.info().all()))); ApplicationContext parent = target.getParent(); contextFlywayBeans.put(target.getId(), new ContextFlywayBeans(flywayBeans, (parent != null) ? parent.getId() : null)); target = parent; } return new ApplicationFlywayBeans(contextFlywayBeans); }
@Override public void run(final Namespace namespace, final Flyway flyway) throws Exception { System.out.println(dumpToAsciiTable(flyway.info().all())); } }
private void info() { System.out.println(dumpToAsciiTable(flyway.info().all())); }
public void info() throws FlywayException { MigrationInfoService info = flyway.info(); System.out.println(MigrationInfoDumper.dumpToAsciiTable(info.all())); }
public void info() throws FlywayException { MigrationInfoService info = flyway.info(); System.out.println(MigrationInfoDumper.dumpToAsciiTable(info.all())); }
private void info() { System.out.println(dumpToAsciiTable(flyway.info().all())); }
/** * <p>listInfo.</p> * * @return a {@link java.util.Map} object. */ @GET public Map<String, MigrationInfo[]> listInfo() { Map<String, MigrationInfo[]> infoMap = Maps.newLinkedHashMap(); for (String dbName : DataSourceManager.getDataSourceNames()) { Flyway flyway = locator.getService(Flyway.class, dbName); infoMap.put(dbName, flyway.info().all()); } return infoMap; }
private void info() { System.out.println(dumpToAsciiTable(flyway.info().all())); }
private void info() { System.out.println(dumpToAsciiTable(flyway.info().all())); }
@Override protected Object run(Flyway flyway) { MigrationInfoService info = flyway.info(); MigrationInfo current = info.current(); MigrationVersion currentSchemaVersion = current == null ? MigrationVersion.EMPTY : current.getVersion(); System.out.println("Schema version: " + currentSchemaVersion); System.out.println(MigrationInfoDumper.dumpToAsciiTable(info.all())); return null; } }
MigrationInfo[] allMigrations = flyway.info().all();
System.out.println("\n" + MigrationInfoDumper.dumpToAsciiTable(flyway.info().all()));
if (flyway == null) throw new NotFoundException(); return Response.ok(flyway.info().all()).build();
break; case "first": { MigrationInfo[] migrationInfos = flyway.info().all(); if (migrationInfos.length == 0) throw new NotFoundException(); entity = resolved(flyway.info().all()); break; case "failed": entity = failed(flyway.info().all()); break; case "future": entity = future(flyway.info().all()); break; case "latest": { MigrationInfo[] migrationInfos = flyway.info().all(); if (migrationInfos.length == 0) throw new NotFoundException(); for (MigrationInfo info : flyway.info().all()) { if (revision.equalsIgnoreCase(info.getVersion().getVersion())) { entity = info;
@Override public Integer call() throws Exception { Flyway flyway = getFlyway(); MigrationInfoService migrationInfoService = flyway.info(); MigrationInfo[] migrationInfos = migrationInfoService.all(); if (migrationInfos != null) { for (MigrationInfo migrationInfo : migrationInfos) { System.out.println( "Flyway: " + migrationInfo.getVersion() + " | script: " + migrationInfo.getScript() + " | installed on: " + migrationInfo.getInstalledOn() + " | state: " + migrationInfo.getState().getDisplayName() ); } } return 0; } }
flyway.validate(); } else if ("info".equals(operation)) { LOG.info("\n" + MigrationInfoDumper.dumpToAsciiTable(flyway.info().all())); } else if ("repair".equals(operation)) { flyway.repair();