Skip to content

Instantly share code, notes, and snippets.

@csaunders
Created May 15, 2011 00:39
Show Gist options
  • Save csaunders/972779 to your computer and use it in GitHub Desktop.
Save csaunders/972779 to your computer and use it in GitHub Desktop.
Alter Table syntax
MigrationSet migrations = new MigrationSet(){{
version(1);
add( new CreateTable("table1", "c", "d", "e") );
version(2);
add(
new AlterTable()
{{
table("table1");
addColumn("f");
}});
}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment