fix(migrate):修正迁移文件中的错误。

This commit is contained in:
徐涛 2022-09-18 10:03:32 +08:00
parent d0d6c9f721
commit 9bbb58ae55
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ create table if not exists region (
parent varchar(15) not null default '0'
);
create table if not exists user (
create table if not exists `user` (
created_at timestamptz not null,
id varchar(120) not null primary key,
username varchar(30) not null,

View File

@ -1,4 +1,4 @@
alter table if exists user add constraint user_type_check check (type in (0, 1, 2));
alter table if exists `user` add constraint user_type_check check (type in (0, 1, 2));
alter table if exists user_detail add constraint positive_service_fee check (unit_service_fee >= 0);