Created
November 2, 2011 08:33
-
-
Save jamesmorgan/1333185 to your computer and use it in GitHub Desktop.
Initial implementation of a SQL creation builder used for generating SQL migration queries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String rawSql = new AlterTableBuild() | |
.alterTable(Person.class) | |
.addColumn(Person.FOO_ID) | |
.after(Person.NAME) | |
.migrate() | |
.from("old_column") | |
.to(Person.FOO_ID) | |
.build(); | |
this.db.executeRaw(rawSql); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment