knexfile.js 402 B

12345678910111213141516171819
  1. const config = require('config')
  2. const baseConfig = {
  3. client: 'postgresql',
  4. connection: config.herokuDatabaseUrl || config.databaseUrl,
  5. pool: {
  6. min: parseInt(config.databasePoolMin, 10),
  7. max: parseInt(config.databasePoolMax, 10),
  8. },
  9. migrations: {
  10. tableName: 'knex_migrations',
  11. },
  12. }
  13. module.exports = {
  14. development: baseConfig,
  15. production: baseConfig,
  16. test: baseConfig,
  17. }