【发布时间】:2021-01-08 18:06:13
【问题描述】:
我在 posgresql 数据库中工作,我想使用 liquibase 覆盖表列中的现有注释,所以我有:
mytable (column1 int) --This is a comment
我知道我可以用 SQL 原生的方式来做,像这样:
<changeSet author="myuser" id="123456">
<sql dbms="postgresql">
COMMENT ON COLUMN mytable.column1 IS 'This is my new comment';
</sql>
</changeSet>
有什么方法可以在不依赖原生机制的情况下进行这种更改?
【问题讨论】: