diff --git a/compose.postgres.yml b/compose.postgres.yml new file mode 100644 index 0000000..025dcc3 --- /dev/null +++ b/compose.postgres.yml @@ -0,0 +1,9 @@ +version: '3.3' +services: + postgres: + image: 'daocloud.io/library/postgres' + environment: + POSTGRES_PASSWORD: mysecretpassword + + ports: + - '5432:5432' diff --git a/dtmsvr/dtmsvr.postgres.sql b/dtmsvr/dtmsvr.postgres.sql new file mode 100644 index 0000000..e69de29 diff --git a/dtmsvr/dtmsvr.sql b/dtmsvr/dtmsvr.sql index 3f781ce..af42fa0 100644 --- a/dtmsvr/dtmsvr.sql +++ b/dtmsvr/dtmsvr.sql @@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS dtm.trans_branch ( `create_time` datetime DEFAULT NULL, `update_time` datetime DEFAULT NULL, PRIMARY KEY (`id`), - UNIQUE KEY `gid` (`gid`,`branch_id`, `branch_type`), + UNIQUE KEY `gid_uniq` (`gid`,`branch_id`, `branch_type`), KEY `create_time` (`create_time`), KEY `update_time` (`update_time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; diff --git a/examples/examples. postgres.sql b/examples/examples. postgres.sql new file mode 100644 index 0000000..e69de29