Changeset 1247


Ignore:
Timestamp:
Dec 9, 2010, 3:47:47 PM (10 years ago)
Author:
work@…
Message:
  • adding initial version of automatic database upgrade script
Location:
trunk/grails-app/conf
Files:
1 added
1 edited

Legend:

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

    r1229 r1247  
    2525        def springSecurityService
    2626
     27        // inject the datasource
     28        def dataSource
     29
    2730        def init = { servletContext ->
    2831                // grom what's happening
     
    4952                        CommunicationManager.registerRestWrapperMethodsFromSAM()
    5053                }
     54
     55                // automatically handle database upgrades
     56                DatabaseUpgrade.handleUpgrades(dataSource)
    5157
    5258                // developmental bootstrapping:
Note: See TracChangeset for help on using the changeset viewer.