-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathknexfile.js
40 lines (39 loc) · 1.08 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
require("@babel/register");
const env = require('./src/env');
module.exports = {
local:{
client: 'mysql2',
connection: {
host: env.default.db.host,
port: env.default.db.port,
user: env.default.db.user,
password: env.default.db.password,
database: env.default.db.database,
supportBigNumbers: true,
bigNumberStrings: true,
multipleStatements: true,
dateStrings: true
},
migrations: {
tableName: 'migrations',
},
debug: env.default.db.debug
},
test:{
client: 'mysql2',
connection: {
host: env.default.db.host,
port: env.default.db.port,
user: env.default.db.user,
password: env.default.db.password,
database: 'test_example',
supportBigNumbers: true,
bigNumberStrings: true,
multipleStatements: true,
dateStrings: true
},
migrations: {
tableName: 'migrations',
}
}
};