Skip to content

Commit

Permalink
Merge pull request #9063 from pvliss/gh-9061
Browse files Browse the repository at this point in the history
Liquibase - fix floatType for mariadb
  • Loading branch information
DanielFran authored Jan 15, 2019
2 parents b523b21 + f040010 commit 0d07a42
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<%_ } _%>

<property name="floatType" value="float4" dbms="postgresql, h2"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
<property name="floatType" value="float" dbms="mysql, oracle, mssql, mariadb"/>

<!--
Added the entity <%= entityClass %>.
Expand Down Expand Up @@ -106,7 +106,7 @@
<%_ } else { _%>
<column name="<%=columnName %>" type="<%=columnType %>" remarks="<%- formatAsLiquibaseRemarks(fields[idx].javadoc) %>">
<%_ } _%>
<%_ if (unique) {
<%_ if (unique) {
const uniqueConstraintName = getUXConstraintName(entityTableName, columnName, prodDatabaseType);
_%>
<constraints nullable="<%= nullable %>" unique="true" uniqueConstraintName="<%= uniqueConstraintName %>" />
Expand All @@ -131,7 +131,7 @@
<column name="<%=getColumnName(relationshipName) %>_id" type="<%= relationshipColumnType %>">
<constraints nullable="<%= nullable_relation %>" />
</column>
<%_ } else if (relationshipType === 'one-to-one' && relationships[idx].ownerSide === true) {
<%_ } else if (relationshipType === 'one-to-one' && relationships[idx].ownerSide === true) {
const uniqueConstraintName = getUXConstraintName(entityTableName, getColumnName(relationshipName) + '_id', prodDatabaseType);
_%>
<column name="<%=getColumnName(relationshipName) %>_id" type="<%= relationshipColumnType %>">
Expand Down

0 comments on commit 0d07a42

Please sign in to comment.