-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathknexfile.js
39 lines (37 loc) · 1.15 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
// Update with your config settings.
require('./config/config');
const path = require('path');
module.exports = {
development: {
client: 'mysql',
connection: `mysql://${process.env.DB_USER}:${process.env.DB_PASSWORD}@${process.env.DB_HOST}:${process.env.DB_PORT}/${process.env.DB_NAME}`,
migrations: {
directory: path.join(__dirname, './_docs/migrations'),
},
seeds: {
directory: path.join(__dirname, './_docs/seeds'),
},
},
/*
staging: {
client: 'mariadb',
connection: `mysql://${process.env.DB_USER}:${process.env.DB_PASSWORD}@${process.env.DB_HOST}:${process.env.DB_PORT}/${process.env.DB_NAME}`,
migrations: {
directory: path.join(__dirname, './_docs/migrations'),
},
seeds: {
directory: path.join(__dirname, './_docs/seeds'),
},
},
test: {
client: 'postgres',
connection: `mysql://${process.env.DB_USER}:${process.env.DB_PASSWORD}@${process.env.DB_HOST}:${process.env.DB_PORT}/${process.env.DB_NAME}`,
migrations: {
directory: path.join(__dirname, './_docs/migrations'),
},
seeds: {
directory: path.join(__dirname, './_docs/seeds'),
},
},
*/
};