Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

YAML update fails with Unexpected error running Liquibase: java.util.LinkedHashMap cannot be cast to java.util.List

$
0
0
JDK: 7u67
Running on MacOSX with Mavericks
Liquibase 3.3.2
SnakeYaml 1.13 (also tried 1.12 and 1.14)
MySQL Connector: mysql-connector-java-5.1.34.jar

Running from command line I created a changelog using:
./liquibase --changeLogFile test.yaml generateChangeLog

Now when I set to a new database and run update:
./liquibase --changeLogFile test.yaml update

I get this error:
Unexpected error running Liquibase: java.util.LinkedHashMap cannot be cast to java.util.List

test.yaml content below here:
databaseChangeLog:
  changeSet:
    id: 1421340276226-1
    author: myname (generated)
    changes:
    - createTable:
        columns:
        - column:
            autoIncrement: true
            constraints:
              constraints:
                primaryKey: true
            name: id
            type: BIGINT
        - column:
            constraints:
              constraints:
                nullable: false
            name: fname
            type: VARCHAR(255)
        - column:
            constraints:
              constraints:
                nullable: false
            name: lname
            type: VARCHAR(255)
        tableName: person

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>