Created
January 15, 2014 07:55
-
-
Save bryanchug/8432406 to your computer and use it in GitHub Desktop.
Grails Migration Script using Groovy SQL to update using named parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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