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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -