Skip to content

Instantly share code, notes, and snippets.

@bryanchug
Created January 15, 2014 07:55
Show Gist options
  • Save bryanchug/8432406 to your computer and use it in GitHub Desktop.
Save bryanchug/8432406 to your computer and use it in GitHub Desktop.
Grails Migration Script using Groovy SQL to update using named parameters
changeSet(author: "bryanchug", id: "1383792606533-1") {
grailsChange {
change {
sql.executeUpdate('UPDATE user SET name = :name', [name: 'Bryan Chug'])
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment