Skip to content

Liquibase puts the comments on the tables instead of on the fields #1408

@php-coder

Description

@php-coder

In the commit 89ba68c (#1326) I used setColumnRemarks:

<setColumnRemarks
	tableName="collections_series"
	columnName="cond"
	remarks="Example: MNH, CANCELLED" />

but after deploy, I see that it put it to the table instead of the field:

mysql> show create table collections_series;
...
| collections_series | CREATE TABLE `collections_series` (
...
  `cond` varchar(9) DEFAULT NULL,
  PRIMARY KEY (`id`),
...
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8 COMMENT='Example: MNH, CANCELLED' |

Here is also related logs:

liquibase.executor.jvm.JdbcExecutor      : ALTER TABLE mystamps.collections_series COMMENT = 'Example: MNH, CANCELLED'
liquibase.changelog.ChangeSet            : Remarks set on collections_series.cond

Metadata

Metadata

Assignees

Labels

ADR/neededA decision has been made and it needs to be documentedkind/bug

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions