Changeset 870


Ignore:
Timestamp:
Sep 2, 2010, 1:06:54 PM (8 years ago)
Author:
duh
Message:
  • forced flushing to the database in Template boostrapping for templates which are used during the initial bootstrapping process as otherwise the bootstrap will break on PostgreSQL. We have tried this previously everywhere in the bootstrap but removed it because it was too slow. Enabled it it only for the troubling templates to make sure the bootstrap will run as expected in production environments...
File:
1 edited

Legend:

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

    r854 r870  
    469469                )
    470470                .addToFields(protocolField)
    471                 .with { if (!validate()) { errors.each { println it} } else save()}
     471                .with { if (!validate()) { errors.each { println it} } else save(flush:true)}
     472                dietTreatmentTemplate.refresh()
    472473
    473474                // boost treatment template
     
    493494                )
    494495                .addToFields(protocolField)
    495                 .with { if (!validate()) { errors.each { println it} } else save()}
     496                .with { if (!validate()) { errors.each { println it} } else save(flush:true)}
     497                boostTreatmentTemplate.refresh()
    496498
    497499                // fasting treatment template
     
    537539                        )
    538540                )
    539                 .with { if (!validate()) { errors.each { println it} } else save()}
     541                .with { if (!validate()) { errors.each { println it} } else save(flush:true)}
     542                liverSamplingEventTemplate.refresh()
    540543
    541544                // blood sampling
     
    555558                        )
    556559                )
    557                 .with { if (!validate()) { errors.each { println it} } else save()}
     560                .with { if (!validate()) { errors.each { println it} } else save(flush:true)}
     561                bloodSamplingEventTemplate.refresh()
    558562
    559563                // plant sample extraction event template
     
    669673                            ])
    670674                )
    671                 .with { if (!validate()) { errors.each { println it} } else save()}
     675                .with { if (!validate()) { errors.each { println it} } else save(flush:true)}
     676                metAssayTemplate.refresh()
    672677        }
    673678
Note: See TracChangeset for help on using the changeset viewer.