Browse Source

修复pgsql自增id脚本创建异常

pull/5/head
zhanghaibo 4 years ago
parent
commit
f4d4291aae
  1. 3
      src/EasyAbp.Abp.EventBus.Boxes.Dtm.EntityFrameworkCore/EasyAbp/Abp/EventBus/Boxes/Dtm/Barriers/DbSpecials/PostgreSQLDtmBarrierDbSpecial.cs

3
src/EasyAbp.Abp.EventBus.Boxes.Dtm.EntityFrameworkCore/EasyAbp/Abp/EventBus/Boxes/Dtm/Barriers/DbSpecials/PostgreSQLDtmBarrierDbSpecial.cs

@ -36,9 +36,8 @@ create schema if not exists ""{schemaName}"";
}
sql += $@"
CREATE SEQUENCE if not EXISTS ""{sequenceFullName}"";
create table if not exists ""{tableFullName}""(
id bigint NOT NULL DEFAULT NEXTVAL (""{sequenceFullName}""),
id bigserial NOT NULL,
trans_type varchar(45) default '',
gid varchar(128) default '',
branch_id varchar(128) default '',

Loading…
Cancel
Save