kumarshantanu / clj-liquibase

Clojure wrapper for Liquibase for database change management and migration
48 stars 8 forks source link

Issue when adding add-columns #12

Open zacyang opened 7 years ago

zacyang commented 7 years ago

The following is similar to what I used in project:

{:database-change-log {:change-set {:id "0001" :author "me" :changes [{:create-table {:table-name "log" :columns [ {:column {:name "some-name" :type "int" :constraints {:nullable? false}}} ]}}]}} {:change-set {:id "0002" :author "me" :changes [{:add-columns {:table-name "log" :columns [ {:column {:name "bla" :type "int" :constraints {:nullable? false}}} ]}}]}}}

what happended is that the change-set 0001 can be executed successfully, after I added the change-set 0002 it explored

AbstractMapChangeLogParser.java: 117 liquibase.ext.edn.AbstractMapChangeLogParser/parse AbstractMapChangeLogParser.java: 69 liquibase.ext.edn.AbstractMapChangeLogParser/parse core.clj: 278 clj-liquibase.core/parse-changelog core.clj: 254 clj-liquibase.core/parse-changelog core.clj: 263 clj-liquibase.core/parse-changelog core.clj: 254 clj-liquibase.core/parse-changelog core.clj: 2514 clojure.core/partial/fn core.clj: 478 clj-liquibase.core/update core.clj: 465 clj-liquibase.core/update cli.clj: 285 clj-liquibase.cli/update cli.clj: 267 clj-liquibase.cli/update RestFn.java: 410 clojure.lang.RestFn/invoke AFn.java: 154 clojure.lang.AFn/applyToHelper RestFn.java: 132 clojure.lang.RestFn/applyTo core.clj: 648 clojure.core/apply core.clj: 641 clojure.core/apply cli.clj: 425 clj-liquibase.cli/entry/call cli.clj: 431 clj-liquibase.cli/entry cli.clj: 421 clj-liquibase.cli/entry RestFn.java: 425 clojure.lang.RestFn/invoke AFn.java: 156 clojure.lang.AFn/applyToHelper RestFn.java: 132 clojure.lang.RestFn/applyTo core.clj: 650 clojure.core/apply core.clj: 641 clojure.core/apply

Also if you can add one example of add-columns in your project?