Browse Source

Fix PostgreSQLDtmBarrierDbSpecial

Resolve #5
pull/6/head
Super 4 years ago
committed by GitHub
parent
commit
73581a8d2a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/EasyAbp.Abp.EventBus.Boxes.Dtm.EntityFrameworkCore/EasyAbp/Abp/EventBus/Boxes/Dtm/Barriers/DbSpecials/PostgreSQLDtmBarrierDbSpecial.cs

8
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);
}
}
}

Loading…
Cancel
Save