backend/knexfile.js

35 lines
635 B
JavaScript
Raw Normal View History

2020-05-02 19:06:34 +00:00
require('dotenv').config();
const { db_url } = require('./config/config');
2020-05-02 19:06:34 +00:00
module.exports = {
development: {
client: 'pg',
connection: db_url,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
useNullAsDefault: true,
},
2020-05-02 19:06:34 +00:00
testing: {
client: 'pg',
connection: db_url,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
useNullAsDefault: true,
},
2020-05-02 19:06:34 +00:00
production: {
client: 'pg',
connection: db_url,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
useNullAsDefault: true,
},
};