Skip to content

Commit

Permalink
Merge pull request #1046 from liquibase/DAT-4370
Browse files Browse the repository at this point in the history
Added Postgres to the list of database which do not need arguments with SMALLINT DAT-4370
  • Loading branch information
nvoxland committed Apr 3, 2020
2 parents 9cb708c + 08ca6f9 commit 3bfa328
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -34,8 +34,10 @@ public DatabaseDataType toDatabaseDataType(Database database) {
type.addAdditionalInformation(getAdditionalInformation());
return type;
}
if ((database instanceof AbstractDb2Database) || (database instanceof DerbyDatabase) || (database instanceof
FirebirdDatabase) || (database instanceof InformixDatabase)) {
if ((database instanceof AbstractDb2Database) ||
(database instanceof DerbyDatabase) ||
(database instanceof FirebirdDatabase) ||
(database instanceof InformixDatabase)) {
return new DatabaseDataType("SMALLINT"); //always smallint regardless of parameters passed
}

Expand All @@ -56,9 +58,9 @@ public DatabaseDataType toDatabaseDataType(Database database) {
return new DatabaseDataType("SMALLSERIAL");
}
}
return new DatabaseDataType("SMALLINT"); //always smallint regardless of parameters passed
}


return super.toDatabaseDataType(database);
}

Expand Down

0 comments on commit 3bfa328

Please sign in to comment.