Skip to content

Commit

Permalink
Merge pull request #66 from ozoneplatform/java-8
Browse files Browse the repository at this point in the history
Upgrading to Grails 2.4.2
  • Loading branch information
stephanieerin committed Nov 5, 2015
2 parents 45552b0 + 2d814d1 commit 98e891e
Show file tree
Hide file tree
Showing 32 changed files with 76 additions and 545 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: groovy

jdk:
- oraclejdk8
- oraclejdk8

env:
- GRAILS_VERSION=2.4.0
- GRAILS_VERSION=2.4.2

before_install:
- rm -rf ~/.sdkman
Expand Down
4 changes: 2 additions & 2 deletions application.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Grails Metadata file
#Mon Aug 24 13:18:39 PDT 2015
#Wed Nov 04 14:34:48 EST 2015
app.base.majorVersion=7
app.base.prefix=OWF
app.base.prevMajorVersion=7
app.base.prevVersion=7.16.1
app.base.sprint=
app.base.version=7.17.0
app.grails.version=2.4.0
app.grails.version=2.4.2
app.name=owf-server
app.notice=${app.notice.ga}
app.notice.alpha=This is an Alpha version and has not been fully tested. Any data entered into this system may be lost. An upgrade to the final release will not be provided. To report any bugs, please send an email to [email protected].
Expand Down
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@
<mkdir dir="${staging.dir}/${owf.security.module}" />
<mkdir dir="${staging.dir}/etc/tools" />

<ant antfile="build.xml" dir="${basedir}/tools/TestDbConversion"/>
<!-- <ant antfile="build.xml" dir="${basedir}/tools/TestDbConversion"/>
<zip destfile="${basedir}/tools/dbvalidation.zip" >
<zipfileset dir="${basedir}/tools/TestDbConversion/target" includes="**/*" filemode="744" />
</zip>
</zip> -->

<copy todir="${staging.dir}/etc/tools" includeEmptyDirs="false">
<fileset dir="tools">
Expand Down
2 changes: 1 addition & 1 deletion grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ grails.project.dependency.resolution = {
}
plugins {
compile ':database-migration:1.4.0'
compile ':hibernate:3.6.10.12'
compile ':hibernate:3.6.10.14'
compile 'org.ozoneplatform:ozone-appconfig:0.9'
compile 'org.ozoneplatform:ozone-auditing:1.2.1'
compile 'org.ozoneplatform:ozone-messaging:1.19'
Expand Down
2 changes: 1 addition & 1 deletion grails-app/migrations/changelog.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import grails.util.Holders as CH
databaseChangeLog = {

//versions for which there are DB changes
def versions = ['3.7.0', '3.8.0', '4.0.0', '5.0.0', '6.0.0', '7.0.0', '7.2.0', '7.3.0', '7.10.0', '7.15.1', '7.16.0']
def versions = ['3.7.0', '3.8.0', '4.0.0', '5.0.0', '6.0.0', '7.0.0', '7.2.0', '7.3.0', '7.10.0', '7.15.1', '7.16.0', '7.16.1']

// On MS SQL Server, we use numeric(19, 0) for the person id, but we use bigint everywhere else. Use this property like:
// column(name: "edited_by_id", type: '${owf.personIdType}')
Expand Down
54 changes: 27 additions & 27 deletions grails-app/migrations/changelog_4.0.0.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ databaseChangeLog = {
changeSet(author: "owf", id: "4.0.0-5", dbms: "postgresql", context: "sampleData, 4.0.0-sampleData") {
comment(text="deleting old sample data")

delete(tableName: "role_people")
// DEPRECATED delete as of 7.16.1 where role_people table is removed.
// delete(tableName: "role_people")
delete(tableName: "role")
delete(tableName: "requestmap")
delete(tableName: "preference")
Expand All @@ -220,7 +221,8 @@ databaseChangeLog = {
changeSet(author: "owf", id: "4.0.0-5", dbms: "h2,mysql,mssql,oracle", context: "sampleData, 4.0.0-sampleData") {
comment(text="deleting old sample data")

delete(tableName: "role_people")
// DEPRECATED delete as of 7.16.1 where role_people table is removed.
// delete(tableName: "role_people")
delete(tableName: "role")
delete(tableName: "requestmap")
delete(tableName: "preference")
Expand All @@ -241,7 +243,8 @@ databaseChangeLog = {
changeSet(author: "owf", id: "4.0.0-5", dbms: "hsqldb", context: "sampleData, 4.0.0-sampleData") {
comment(text="deleting old sample data")

delete(tableName: "role_people")
// DEPRECATED delete as of 7.16.1 where role_people table is removed.
// delete(tableName: "role_people")
//for some reason hsqldb will fail if the role table is not all caps
delete(tableName: "ROLE")
delete(tableName: "requestmap")
Expand Down Expand Up @@ -3059,32 +3062,29 @@ databaseChangeLog = {
// SET IDENTITY_INSERT [dbo].[role_people] ON
// """)
// }
changeSet(author: "owf", id: "4.0.0-31", context: "sampleData, 4.0.0-sampleData") {
comment(text="insert new sample data")
insert(tableName: "role_people") {
column(name: "role_id", valueNumeric: "26")

column(name: "person_id", valueNumeric: "2")
}

insert(tableName: "role_people") {
column(name: "role_id", valueNumeric: "26")

column(name: "person_id", valueNumeric: "3")
}

insert(tableName: "role_people") {
column(name: "role_id", valueNumeric: "26")

column(name: "person_id", valueNumeric: "28")
}

insert(tableName: "role_people") {
column(name: "role_id", valueNumeric: "27")
// DEPRECATED changeset don't use reuse this exact id,contect,dbms combo again
// changeSet(author: "owf", id: "4.0.0-31", context: "sampleData, 4.0.0-sampleData") {
// comment(text="insert new sample data")
// insert(tableName: "role_people") {
// column(name: "role_id", valueNumeric: "26")
//
// column(name: "person_id", valueNumeric: "2")
// }
// insert(tableName: "role_people") {
// column(name: "role_id", valueNumeric: "26")
// column(name: "person_id", valueNumeric: "3")
// }
// insert(tableName: "role_people") {
// column(name: "role_id", valueNumeric: "26")
// column(name: "person_id", valueNumeric: "28")
// }
// insert(tableName: "role_people") {
// column(name: "role_id", valueNumeric: "27")
// column(name: "person_id", valueNumeric: "1")
// }
// }

column(name: "person_id", valueNumeric: "1")
}
}
// DEPRECATED changeset don't use reuse this exact id,context,dbms combo again
// changeSet(author: "owf", id: "4.0.0-32", dbms:"mssql", context: "sampleData, 4.0.0-sampleData") {
// comment(text="allow identity inserts")
Expand Down
21 changes: 15 additions & 6 deletions grails-app/migrations/changelog_7.16.1.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ databaseChangeLog = {
""")
}

changeSet(author: 'owf', id: '7.16.1-1', dbms: 'mysql, hsqldb, oracle, mssql, postgresql', context: 'create, upgrade, 7.16.1') {
changeSet(author: 'owf', id: '7.16.1-1', dbms: 'mysql, oracle, mssql, postgresql', context: 'create, upgrade, 7.16.1') {
insert(tableName: "role") {
column(name: "authority", value: "ROLE_USER")
column(name: "description", value: "User Role")
Expand All @@ -22,11 +22,20 @@ databaseChangeLog = {
}
}

changeSet(author: "owf", id: "7.16.1-2", dbms:"mssql", context: "create, upgrade, 7.16.1") {
comment(text="allow role inserts")
sql ( text = """
SET IDENTITY_INSERT [dbo].[role] OFF
""")
changeSet(author: 'owf', id: '7.16.1-1', dbms: 'hsqldb', context: 'create, upgrade, 7.16.1') {
insert(tableName: "ROLE") {
column(name: "authority", value: "ROLE_USER")
column(name: "description", value: "User Role")
column(name: "id", value: "26")
column(name: "version", value: "2")
}

insert(tableName: "ROLE") {
column(name: "authority", value: "ROLE_ADMIN")
column(name: "description", value: "Admin Role")
column(name: "id", value: "27")
column(name: "version", value: "1")
}
}

changeSet(author: 'owf', id: "7.16.1-2", context: "create, 7.16.1", dbms: 'postgresql') {
Expand Down
23 changes: 23 additions & 0 deletions grails-app/migrations/changelog_7.17.0.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
databaseChangeLog = {

changeSet(author: "owf", id: "7.17.0-1", context: "sampleData, 7.17.0-sampleData") {
comment(text="insert new sample data")
insert(tableName: "person_role") {
column(name: "role_id", valueNumeric: "26")
column(name: "person_authorities_id", valueNumeric: "2")
}
insert(tableName: "person_role") {
column(name: "role_id", valueNumeric: "26")
column(name: "person_authorities_id", valueNumeric: "3")
}
insert(tableName: "person_role") {
column(name: "role_id", valueNumeric: "26")
column(name: "person_authorities_id", valueNumeric: "28")
}
insert(tableName: "person_role") {
column(name: "role_id", valueNumeric: "27")
column(name: "person_authorities_id", valueNumeric: "1")
}
}

}
Loading

0 comments on commit 98e891e

Please sign in to comment.