-
Notifications
You must be signed in to change notification settings - Fork 0
/
knexfile.js
70 lines (67 loc) · 1.57 KB
/
knexfile.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
require('dotenv').config();
module.exports = {
development: {
client: 'pg',
connection: {
host: process.env.DB_DEV_HOST || 'localhost',
database: process.env.DB_DEV_DATABASE || 'rxid_dev',
user: process.env.DB_DEV_USER || 'admin',
password: process.env.DB_DEV_PASSWORD,
port: process.env.DB_DEV_PORT || '5432'
},
pool: {
min: 2,
max: 10
},
useNullAsDefault: true,
migrations: {
directory: './data/migrations'
},
seeds: {
directory: './data/seeds'
}
},
testing: {
client: 'pg',
connection: {
host: process.env.DB_TEST_HOST || 'localhost',
database: process.env.DB_TEST_DATABASE || 'rxid_test',
user: process.env.DB_TEST_USER || 'admin',
password: process.env.DB_TEST_PASSWORD,
port: process.env.DB_TEST_PORT || '5432'
},
pool: {
min: 2,
max: 10
},
useNullAsDefault: true,
migrations: {
directory: './data/migrations'
},
seeds: {
directory: './data/seeds'
}
},
production: {
client: 'pg',
connection: {
host: process.env.DB_PROD_HOST || 'localhost',
database: process.env.DB_PROD_DATABASE || 'rxid_prod',
user: process.env.DB_PROD_USER || 'admin',
password: process.env.DB_PROD_PASSWORD,
port: process.env.DB_PROD_PORT || '5432'
},
pool: {
min: 2,
max: 10
},
useNullAsDefault: true,
migrations: {
tableName: 'knex_migrations',
directory: './data/migrations'
},
seeds: {
directory: './data/seeds'
}
}
};