Browse Source

add postgre sql

pull/13/head
yedf2 5 years ago
parent
commit
998daf5f8c
  1. 9
      compose.postgres.yml
  2. 0
      dtmsvr/dtmsvr.postgres.sql
  3. 2
      dtmsvr/dtmsvr.sql
  4. 0
      examples/examples. postgres.sql

9
compose.postgres.yml

@ -0,0 +1,9 @@
version: '3.3'
services:
postgres:
image: 'daocloud.io/library/postgres'
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- '5432:5432'

0
dtmsvr/dtmsvr.postgres.sql

2
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;

0
examples/examples. postgres.sql

Loading…
Cancel
Save