-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmg.sample.toml
More file actions
36 lines (33 loc) · 1.15 KB
/
mg.sample.toml
File metadata and controls
36 lines (33 loc) · 1.15 KB
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
35
36
[postgres-sample]
driver = "postgres"
dsn = "postgres://user:password@127.0.0.1:5432/dbname?sslmode=disable"
source_dir = [
"./testdata/postgres/migrates",
"./testdata/postgres/seeds"
]
[mysql-sample]
driver = "mysql"
dsn = "user:password@tcp(127.0.0.1:3306)/dbname"
source_dir = [
"./testdata/mysql/migrates",
"./testdata/mysql/seeds"
]
[environment-variable-sample]
driver = "postgres"
dsn = "postgres://user:${PASSWORD}@${HOSTNAME}:5432/dbname?sslmode=disable"
source_dir = [
"./testdata/postgres/migrates",
"./testdata/postgres/seeds"
]
[option-sample] # section name
driver = "postgres" # database driver
dsn = "postgres://user:${PASSWORD}@${HOSTNAME}:5432/dbname?sslmode=disable" # database dsn
source_dir = [ # database source directorys
"./testdata/postgres/migrates",
"./testdata/postgres/seeds"
]
up_annotation = "+goose Up" # database up command annotation
down_annotation = "+goose Down" # database down command annotation
version_table = "migration_versions" # versions use table name
version_start_number = 2019060819341936 # version start number
json_format = true # output message format