add a java program to generate the migration file