forked from AugurProject/augur-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknexfile.js
More file actions
51 lines (50 loc) · 957 Bytes
/
knexfile.js
File metadata and controls
51 lines (50 loc) · 957 Bytes
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
const { augurDbPath } = require("./config.json");
module.exports = {
development: {
client: 'sqlite3',
connection: {
filename: './augur.dev.db',
},
seeds: {
directory: './src/seeds/test'
},
migrations: {
directory: './src/migrations'
}
},
build: {
client: 'sqlite3',
connection: {
filename: augurDbPath,
},
seeds: {
directory: './build/seeds/test'
},
migrations: {
directory: './build/migrations'
}
},
build_postgres: {
client: 'postgresql',
connection: process.env.DATABASE_URL,
seeds: {
directory: './build/seeds/test'
},
migrations: {
directory: './build/migrations'
}
},
test: {
client: 'sqlite3',
connection: {
filename: ':memory:',
},
seeds: {
directory: './build/seeds/test'
},
migrations: {
directory: './build/migrations'
},
useNullAsDefault: true
}
};