2020-05-02 19:06:34 +00:00
|
|
|
require('dotenv').config();
|
2020-08-29 08:48:21 +00:00
|
|
|
const { dbURL } = require('./config/config');
|
2020-05-02 19:06:34 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2020-05-04 14:02:31 +00:00
|
|
|
development: {
|
|
|
|
client: 'pg',
|
2020-08-29 08:48:21 +00:00
|
|
|
connection: dbURL,
|
2020-05-04 14:02:31 +00:00
|
|
|
migrations: {
|
|
|
|
directory: './data/migrations',
|
|
|
|
},
|
|
|
|
seeds: { directory: './data/seeds' },
|
|
|
|
useNullAsDefault: true,
|
|
|
|
},
|
2020-05-02 19:06:34 +00:00
|
|
|
|
2020-05-04 14:02:31 +00:00
|
|
|
testing: {
|
|
|
|
client: 'pg',
|
2020-08-29 08:48:21 +00:00
|
|
|
connection: dbURL,
|
2020-05-04 14:02:31 +00:00
|
|
|
migrations: {
|
|
|
|
directory: './data/migrations',
|
|
|
|
},
|
|
|
|
seeds: { directory: './data/seeds' },
|
|
|
|
useNullAsDefault: true,
|
|
|
|
},
|
2020-05-02 19:06:34 +00:00
|
|
|
|
2020-05-04 14:02:31 +00:00
|
|
|
production: {
|
|
|
|
client: 'pg',
|
2020-08-29 08:48:21 +00:00
|
|
|
connection: dbURL,
|
2020-05-04 14:02:31 +00:00
|
|
|
migrations: {
|
|
|
|
directory: './data/migrations',
|
|
|
|
},
|
|
|
|
seeds: { directory: './data/seeds' },
|
|
|
|
useNullAsDefault: true,
|
|
|
|
},
|
|
|
|
};
|