backend/knexfile.js

35 lines
635 B
JavaScript

require('dotenv').config();
const { db_url } = require('./config/config');
module.exports = {
development: {
client: 'pg',
connection: db_url,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
useNullAsDefault: true,
},
testing: {
client: 'pg',
connection: db_url,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
useNullAsDefault: true,
},
production: {
client: 'pg',
connection: db_url,
migrations: {
directory: './data/migrations',
},
seeds: { directory: './data/seeds' },
useNullAsDefault: true,
},
};