Files
Online-Topup-V1/knexfile.js
T
2021-04-19 15:51:04 +07:00

38 lines
774 B
JavaScript

require("dotenv").config();
module.exports = {
development: {
client: "pg",
connection: process.env.DB_URL,
migrations: {
directory: "./infrastructure/database/migrations",
},
seeds: { directory: "./infrastructure/database/seeds" },
},
testing: {
client: "pg",
connection: process.env.DB_URL,
migrations: {
directory: "./infrastructure/database/migrations",
},
seeds: { directory: "./infrastructure/database/seeds" },
},
production: {
client: "pg",
connection: {
database: "DB_TOPUP_ONLINE_APP",
user: "developer",
password: "hisnutech",
},
pool: {
min: 2,
max: 10,
},
migrations: {
directory: "./infrastructure/database/migrations",
},
},
};