Changeset 1251

Show
Ignore:
Timestamp:
09-12-10 16:23:39 (3 years ago)
Author:
work@…
Message:

- template_template_field references needed to be removed as well

Files:
1 modified

Legend:

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

    r1250 r1251  
    5656                                sql.execute("DELETE FROM study_template_text_fields WHERE template_text_fields_idx='Description'") 
    5757 
     58                                // delete all template_template_field references 
     59                                sql.execute("DELETE FROM template_template_field WHERE template_field_id=${id}") 
     60 
    5861                                // and delete the obsolete template field 
    5962                                sql.execute("DELETE FROM template_field WHERE id=${id}")