Quantcast

Database migration 1.1 has it changed how sql is executed?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Database migration 1.1 has it changed how sql is executed?

sethfuller
I have a changeSet I manually created that does an update. Under database migrations 1.0 I could run it with the command sql.execute("UPDATE ...")

Under 1.1 I am getting groovy.lang.MissingPropertyException: No such property: sql for class: Script1 where Script1 is my changelog file and the line number reported in the stacktrace is the line of my sql.execute.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Database migration 1.1 has it changed how sql is executed?

sethfuller
My fault I found that I forgot to surround it with grailsChange and change blocks.
Loading...