基于此Making case insensitive table with liquibase in postgres
postgresql创建表
create table "Users" ("userId" integer unique not null, "userFirstName" varchar(50) not null,"userLastName" varchar(50) not null);
而不是
create table Users (userId integer unique not null, userFirstName varchar(50) not null,userLastName varchar(50) not null);
这会导致 jpa 出现问题。
如何强制 liquibase maven 插件使用这个子类,以便在 postgres 中获得 liquibase 的不敏感性?
最佳答案
我在上面的评论中得到了 @a_horse_with_no_name 的答案:
I guess the best option is to simply write everything in lowercase in your Liquibase changelog. That way Liquibase doesn't quote the names
关于postgresql - postgresql 中的 Liquibase 不区分大小写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26235744/