forked from rubenv/sql-migrate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdbconfig.yml
34 lines (29 loc) · 852 Bytes
/
dbconfig.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
postgres:
dialect: postgres
datasource: dbname=test sslmode=disable
dir: test-migrations
mysql:
dialect: mysql
datasource: root@/test?parseTime=true
dir: test-migrations
mysql_noflag:
dialect: mysql
datasource: root@/test
dir: test-migrations
mysql_env:
dialect: mysql
datasource: ${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_HOST}:${MYSQL_PORT})/${DATABASE_NAME}?parseTime=true
dir: test-migrations
mysql_ssl:
dialect: mysql
datasource: ${MYSQL_USER}:${MYSQL_PASSWORD}@tcp(${MYSQL_HOST}:${MYSQL_PORT})/${DATABASE_NAME}?parseTime=true&tls=custom
dir: test-migrations
tls:
ca: ${MYSQL_CA_CERT_FILE}
cert: ${MYSQL_CLIENT_CERT_FILE}
key: ${MYSQL_CLIENT_KEY_FILE}
sqlite:
dialect: sqlite3
datasource: test.db
dir: test-migrations
table: migrations