Class MigrationSchema

java.lang.Object
io.ebean.migration.runner.MigrationSchema

public class MigrationSchema extends Object
Create Schema if needed and set current Schema in Migration
  • Constructor Details

    • MigrationSchema

      public MigrationSchema(MigrationConfig migrationConfig, Connection connection)
      Construct with configuration and connection.
  • Method Details

    • createAndSetIfNeeded

      public void createAndSetIfNeeded() throws SQLException
      Create and set the DB schema if desired.
      Throws:
      SQLException