We're updating the issue view to help you get more done.Learn more

Fix old Liquibase migrations

I ran:
/var/opt/rh/eap7/lib/wildfly/standalone/deployments/zanata.war/WEB-INF/liquibase updateSQL

I got:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [main] INFO liquibase - Adding ENGINE=INNODB to generated SQL for table DATABASECHANGELOGLOCK [main] INFO liquibase - Successfully acquired change log lock [main] INFO liquibase - Creating database history table with name: zanata.DATABASECHANGELOG [main] INFO liquibase - Adding ENGINE=INNODB to generated SQL for table DATABASECHANGELOG [main] INFO org.zanata.liquibase.custom.MigrateRawDocumentsToFileSystem - Raw documents will be migrated to: null [main] WARN liquibase - modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case [main] WARN liquibase - modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case [main] WARN liquibase - modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case [main] WARN liquibase - modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case [main] WARN liquibase - modifyDataType will lose primary key/autoincrement/not null settings for mysql. Use <sql> and re-specify all configuration if this is the case [main] INFO liquibase - Successfully released change log lock Unexpected error running Liquibase: Validation Failed: 1 changes have validation errors liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: liquibase.exception.SetupException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial [main] ERROR liquibase - Validation Failed: 1 changes have validation errors liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: liquibase.exception.SetupException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial liquibase.exception.ValidationFailedException: Validation Failed: 1 changes have validation errors liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: liquibase.exception.SetupException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:215) at liquibase.Liquibase.update(Liquibase.java:208) at liquibase.Liquibase.update(Liquibase.java:275) at liquibase.Liquibase.update(Liquibase.java:256) at liquibase.integration.commandline.Main.doMigration(Main.java:1122) at liquibase.integration.commandline.Main.run(Main.java:180) at liquibase.integration.commandline.Main.main(Main.java:99)

Status

Assignee

Sean Flanigan

Reporter

Ding-Yi Chen

Tested Version/s

None

Sprint

None

Fix versions

Affects versions

platform-4.4.4

Priority

High