Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Liquibase doesn't honor type modifiers

$
0
0
Code:

  1. AddColumn.Column col = new AddColumn.Column();
  2. ...
  3. col.setType("INT(10) ZEROFILL UNSIGNED");
  4. changeSet.getChangeSetChildren().add(addCol);

Output:

  1. ALTER TABLE tablename ADD testcolumn INT NULL;

... which means both the zerofill and unsigned modifiers are completely lost.

Is there a way to make Liquibase use the EXACT value passed to setType ?



The above targets MySQL, using the latest available driver, but I get the same problem with older drivers.



Viewing all articles
Browse latest Browse all 2993

Trending Articles