Liquibase 无法正确导出使用 lower(column) 等函数的索引
Liquibase doesn't export correctly indexes which use functions like lower(column)
索引:
CREATE INDEX guild_name_lower_ops
ON guilds
USING btree
(lower(name::text) COLLATE pg_catalog."default" varchar_pattern_ops);
生成的变更集:
<changeSet author="Vlad (generated)" id="1450262497286-89">
<createIndex indexName="guild_name_lower_ops" tableName="guilds" />
</changeSet>
并且它没有通过 "status" 命令检查并显示 "columns is empty" 错误消息。
为什么没有导出?是否有任何解决方法,以便我仍然可以将 liquibase 与我的数据库一起使用?
Liquibase 目前没有为 Postgres 解决这个问题。解决方法是在 XML 生成后更改它,以便在创建新数据库时正确创建索引。
索引:
CREATE INDEX guild_name_lower_ops
ON guilds
USING btree
(lower(name::text) COLLATE pg_catalog."default" varchar_pattern_ops);
生成的变更集:
<changeSet author="Vlad (generated)" id="1450262497286-89">
<createIndex indexName="guild_name_lower_ops" tableName="guilds" />
</changeSet>
并且它没有通过 "status" 命令检查并显示 "columns is empty" 错误消息。
为什么没有导出?是否有任何解决方法,以便我仍然可以将 liquibase 与我的数据库一起使用?
Liquibase 目前没有为 Postgres 解决这个问题。解决方法是在 XML 生成后更改它,以便在创建新数据库时正确创建索引。