Hi,
I’ve just tried to migrate from 1.9.5 to 2.0-RC2-SNAPSHOT. I’ve to use hsqldb-2.0, and the double IDENTITY pb forces me tu upgrade.
I can’t find a replacement for SpringLiquibase unfortunately, so I’ve temporarly used liquibase-maven plugin to get a database setup before my tests.
I get the following error which seems to be internal to Liquibase:
Jun 23, 2010 6:19:42 PM liquibase.logging.jvm.JavaUtilLogger info
INFO: Successfully acquired change log lock
Jun 23, 2010 6:19:42 PM liquibase.logging.jvm.JavaUtilLogger info
INFO: com/company/client/project/db.changelog.initial.xml is using schema version 1.9 rather than version 2.0
Jun 23, 2010 6:19:44 PM liquibase.logging.jvm.JavaUtilLogger info
INFO: Successfully released change log lock
[ERROR] Error executing SQL ALTER TABLE DATABASECHANGELOG ALTER COLUMN EXECTYPE VARCHAR(10) NOT NULL
liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE DATABASECHANGELOG ALTER COLUMN EXECTYPE VARCHAR(10) NOT NULL
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:61)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:92)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:69)
at liquibase.database.AbstractDatabase.checkDatabaseChangeLogTable(AbstractDatabase.java:415)
at liquibase.Liquibase.checkDatabaseChangeLogTable(Liquibase.java:523)
at liquibase.Liquibase.forceReleaseLocks(Liquibase.java:559)
at org.liquibase.maven.plugins.AbstractLiquibaseMojo.cleanup(AbstractLiquibaseMojo.java:415)
at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute(AbstractLiquibaseMojo.java:291)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.sql.SQLException: Attempt to insert null into a non-nullable column: column: EXECTYPE table: DATABASECHANGELOG in statement [ALTER TABLE DATABASECHANGELOG ALTER COLUMN EXECTYPE VARCHAR(10) NOT NULL]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source)
at liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:83)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:54)
… 26 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error setting up or running Liquibase: Error executing SQL UPDATE DATABASECHANGELOG SET ORDEREXECUTED = -1
Violation of unique constraint UQ_LB_ORDEREXEC: duplicate value(s) for column(s) ORDEREXECUTED
regards,
nodje