cpjust wrote: > > Hi, > I've got a strange problem here... > I copied the CommandLineUtils.doGenerateChangeLog() function into my own > program and removed some of the code that I don't need so I can export a > database into an XML changelog file. > > When I run my code, it works fine with DB2 databases, but if I try to > export a MySQL database, it just creates an empty changelog: > > Can anyone see any reason why this code works on DB2 but not on MySQL? > If I run the regular liquibase GenerateChangeLog command on the command > line, it works fine with MySQL. >
I think I figured it out... After I added my own statusListener I realized it was connecting to the right MySQL database in the jdbc URL, but since MySQL doesn't have Schemas like DB2, it was using the schemaName I passed it as the database name, which didn't exist; so it gave me an empty change log. -- View this message in context: http://old.nabble.com/Can%27t-get-my-own-GenerateChangeLog-to-work-with-MySQL-tp28287926p28287929.html Sent from the LiquiBase - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Liquibase-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/liquibase-user
