2010年3月9日 星期二

MySQL : Development for an Oracle sequence migration

Hi!

Best use Eclipse 3.2 to open the project that is shipped with the tool.

You need to look into the com.mysql.grt.modules package. There you will find a MigrationOracle.java class.

You will need to add 2 functions. First, the actual function that performs the migration (look at migrateViewToMysql() as an example), second a function that returns information about this function (look at getMigrateViewToMysqlInfo()). The second functions needs to be called here.

in

public static MethodList migrationMethods() {
..
methods.add(mig.getMigrateRoutineToMysqlInfo());

return methods;
}


Then your new migration method is available to the tool.

Michael Zinner, Team Lead, Developer Tools
MySQL AB, www.mysql.com

Are you MySQL certified? www.mysql.com/certification

沒有留言: