All Downloads are FREE. Search and download functionalities are using the official Maven repository.

an.codegen-maven-plugin.1.3.source-code.tp-MainDbMigration Maven / Gradle / Ivy

The newest version!
package main;

import com.avaje.ebean.config.dbplatform.DbPlatformName;
import com.avaje.ebean.dbmigration.DbMigration;

import java.io.IOException;

/**
 * Generate the DB Migration.
 */
public class MainDbMigration {

  public static void main(String[] args) throws IOException, InterruptedException {

    // optionally specify the version and name
    //System.setProperty("ddl.migration.version", "1.2_33");
    //System.setProperty("ddl.migration.name", "");

    // generate a migration using drops from a prior version
    //System.setProperty("ddl.migration.pendingDropsFor", "1.1");

    DbMigration dbMigration = new DbMigration();
    dbMigration.setPlatform(DbPlatformName.POSTGRES);
    // generate the migration ddl and xml
    dbMigration.generateMigration();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy