add postgre sql
This commit is contained in:
parent
b1edaf8e7f
commit
998daf5f8c
9
compose.postgres.yml
Normal file
9
compose.postgres.yml
Normal file
@ -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
Normal file
0
dtmsvr/dtmsvr.postgres.sql
Normal file
@ -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
Normal file
0
examples/examples. postgres.sql
Normal file
Loading…
x
Reference in New Issue
Block a user