From f4d4291aaeffbb34c47aa07800dc7068eeec35b4 Mon Sep 17 00:00:00 2001 From: zhanghaibo <1091675746@qq.com> Date: Mon, 27 Jun 2022 17:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpgsql=E8=87=AA=E5=A2=9Eid?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=88=9B=E5=BB=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtm/Barriers/DbSpecials/PostgreSQLDtmBarrierDbSpecial.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/EasyAbp.Abp.EventBus.Boxes.Dtm.EntityFrameworkCore/EasyAbp/Abp/EventBus/Boxes/Dtm/Barriers/DbSpecials/PostgreSQLDtmBarrierDbSpecial.cs b/src/EasyAbp.Abp.EventBus.Boxes.Dtm.EntityFrameworkCore/EasyAbp/Abp/EventBus/Boxes/Dtm/Barriers/DbSpecials/PostgreSQLDtmBarrierDbSpecial.cs index 63c6ad1..2d010de 100644 --- a/src/EasyAbp.Abp.EventBus.Boxes.Dtm.EntityFrameworkCore/EasyAbp/Abp/EventBus/Boxes/Dtm/Barriers/DbSpecials/PostgreSQLDtmBarrierDbSpecial.cs +++ b/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 '',