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..f4546d8 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,9 @@ 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}""), +CREATE SEQUENCE if not EXISTS {sequenceFullName}; +create table if not exists {tableFullName}( + id bigint NOT NULL DEFAULT NEXTVAL ('{sequenceFullName}'), trans_type varchar(45) default '', gid varchar(128) default '', branch_id varchar(128) default '', @@ -65,4 +65,4 @@ create table if not exists ""{tableFullName}""( { return string.Format(QueryPreparedSqlFormat, tableName ?? DefaultBarrierTableName); } -} \ No newline at end of file +}