Skip to content

Commit

Permalink
Fix drop constraint code with dates, when the field is a database res…
Browse files Browse the repository at this point in the history
…erved keyword

See #5427
  • Loading branch information
jdubois committed Mar 24, 2017
1 parent d6082a7 commit 67ab509
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -104,7 +104,7 @@
</createTable>
<%_ for (const idx in fields) {
if (fields[idx].fieldType == 'ZonedDateTime') { _%>
<dropDefaultValue tableName="<%= entityTableName %>" columnName="<%=fields[idx].fieldNameUnderscored %>" columnDataType="datetime"/>
<dropDefaultValue tableName="<%= entityTableName %>" columnName="<%=fields[idx].fieldNameAsDatabaseColumn %>" columnDataType="datetime"/>
<%_ }
} _%>
<% for (idx in relationships) {
Expand Down

0 comments on commit 67ab509

Please sign in to comment.