为什么这条线id serial primary key,
会导致这个错误?[id] in table [public.city]; found [serial (Types#INTEGER)], but expecting [int8 (Types#BIGINT)
我不得不将 id 类型从 Long (bigint) 更改为 Integer。
我如何在 Liquibase 中使用创建表的示例:
create table users
(
id serial primary key,
email varchar(255) not null
constraint uk_6dotkott2kjsp8vw4d0m25fb7
unique,
first_name varchar(255) not null,
last_name varchar(255) not null,
password varchar(255) not null,
role varchar(255),
status varchar(255)
);
alter table users
owner to root;
以下声明:
等效于以下语句: