lundi 20 avril 2015

Changing a Column's Data Type using Grails db-migration plugin

I keep hitting this MigrationFailedException

whilst attempting to convert a boolean to integer. I know that at SQL level I could use USING (col_name::integer) to instruct Postgresql how to cast. I wonder if there is any syntax that I could use on my changelog script to prevent getting the aforementioned exception.

The version of the plugin I am using is 1.4.0 and I am favouring groovy over XML.

Aucun commentaire:

Enregistrer un commentaire