mysql - Grails Database migration- manual changelog of insert values to specific column in table -
i have insert value existing table column called name.
i use db migration.
i wrote manually changelog:
changeset(author: "sara (generated)", id: "1436343845028-82") { grailschange { change { sql.execute("insert language (name) values ('abkhazian'),('swahili'),('zulu')") } } }
when i'm trying dbm-update got following error:
"liquibase.exception.migrationfailedexception: migration failed change set changelog-1.0.groovy::1436343845028-82::sara (generated): reason: java.sql.sqlexception: field 'version' doesn't have default value: caused by: field 'version' doesn't have default value"
Comments
Post a Comment