Changeset 1535 for trunk


Ignore:
Timestamp:
Feb 17, 2011, 3:36:43 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • fixed typo/missing quote in SQL-query upgrade script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/DatabaseUpgrade.groovy

    r1534 r1535  
    185185                   try {
    186186                // Check if constraint still exists
    187                 if (sql.firstRow("SELECT * FROM pg_constraint WHERE contype='mapping_column_name_key"))
     187                if (sql.firstRow("SELECT * FROM pg_constraint WHERE contype='mapping_column_name_key'"))
    188188                    sql.execute("ALTER TABLE mapping_column DROP CONSTRAINT mapping_column_name_key")
    189189                else
Note: See TracChangeset for help on using the changeset viewer.