grails-plugins/grails-database-migration — pull request #26 by flof (2013-04-10 21:59:02+00:00)
Title: GPDATABASEMIGRATION-124

This is a fix for GPDATABASEMIGRATION-124.
With RDBMS that convert column names to upper case, like H2 does, `dbm-gorm-diff` is broken. It creates drop-column commands for all existing columns.

Background: GormColumn objects must be compared case-insensitive. GormColumn already implemented a case-insensitive `equals()`-Method, but Grail's `==` Operator does not call `equals()` if the class implements the Comparable interface. Instead `compareTo()` is called. And since this method was not overridden in GormColumn, the case-sensitive implementation of Liquibase's Column-class was used.

This fix consists of implementing `compareTo()` in a case-insensitive way in GormColumn. I also extended the relevant cli tests.