Changeset 943 for trunk


Ignore:
Timestamp:
05/24/11 10:50:26 (8 years ago)
Author:
gav
Message:

Introduce appNameLowerCase variable for production database naming convention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gnuMims-config.groovy

    r936 r943  
    2020*******************/ 
    2121def appName = grails.util.Metadata.current.'app.name' 
     22def appNameLowerCase = appName.toLowerCase() 
    2223println "EXT($appName): External config start." 
    2324 
     
    4950//             dialect = org.hibernate.dialect.SQLServerDialect // MSSQL 2000+2005 Useful with `grails schema-export` 
    5051//             driverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver" 
    51 //             username = "gnumimsadmin" 
    52 //             password = "gnumimsadmin" 
     52//             username = "${appNameLowerCase}admin" 
     53//             password = "${appNameLowerCase}admin" 
    5354//             dbCreate = "update" 
    54 //             url = "jdbc:sqlserver://gnumimssql01:1433;databaseName=gnumims_prod" 
     55//             url = "jdbc:sqlserver://${appNameLowerCase}sql01:1433;databaseName=${appNameLowerCase}_prod" 
    5556            /** MySQL */ 
    5657            dialect = org.hibernate.dialect.MySQL5InnoDBDialect 
    5758            driverClassName = "com.mysql.jdbc.Driver" 
    58             username = "gnumimsadmin" 
    59             password = "gnumimsadmin" 
     59            username = "${appNameLowerCase}admin" 
     60            password = "${appNameLowerCase}admin" 
    6061            dbCreate = "update" 
    61             url = "jdbc:mysql://gnumimssql01:3306/gnumims_prod?autoReconnect=true&sessionVariables=storage_engine=InnoDB" 
     62            url = "jdbc:mysql://${appNameLowerCase}sql01:3306/${appNameLowerCase}_prod?autoReconnect=true&sessionVariables=storage_engine=InnoDB" 
    6263        } 
    6364    } 
Note: See TracChangeset for help on using the changeset viewer.