Skip to content

Commit

Permalink
initial add of adding the constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Feb 13, 2019
1 parent 79a5332 commit 84fbccb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions grails-app/migrations/changelog-2_3_1.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
databaseChangeLog = {

changeSet(author: "nathandunn", id: "1459788030178-1") {

preConditions(onFail: 'MARK_RAN', onError: "HALT") {
not {
columnExists(columnName: "obsolete", tableName: "organism")
}
}
addColumn(tableName: "organism"){
column(name:"obsolete",type:"boolean",value:false,nullable:true)
}
}
}

0 comments on commit 84fbccb

Please sign in to comment.