Skip to content

Instantly share code, notes, and snippets.

@mlist
Created June 22, 2012 16:28
Show Gist options
  • Save mlist/2973850 to your computer and use it in GitHub Desktop.
Save mlist/2973850 to your computer and use it in GitHub Desktop.
Setting a default null value in a changeSet with a datetime2 field
changeSet(author: "mlist (generated)", id: "1340373645634-47") {
addNotNullConstraint(columnDataType: "datetime2", columnName: "date_created", schemaName: "dbo", tableName: "slide_layout",
defaultNullValue: "2012-06-22 00:00:00.0000000")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment