s.codegen-maven-plugin.4.1.source-code.tp-GenerateDbMigration.kt Maven / Gradle / Ivy
package main
import io.ebean.annotation.Platform
import io.ebean.dbmigration.DbMigration
fun main(args : Array) {
// 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");
val dbMigration = DbMigration.create()
dbMigration.setPlatform(Platform.POSTGRES)
dbMigration.generateMigration()
}