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 -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -