-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathknexfile.js
32 lines (29 loc) · 906 Bytes
/
knexfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Update with your config settings.
module.exports = {
// For development on your local machine.
development: {
client: 'pg',
useNullAsDefault: true,
migrations: {
directory: './src/migrations' // Directory to migration files of the project.
},
seeds: {
directory: './src/seeds' // Directory to seeds files of the project.
},
connection: {
host: "localhost",
user: "root",
password: "root",
database: "Donation" // Create Database with same name on your local machine in postgres or change the name these with your database name.
}
},
// For production of your project.
production: {
client: 'pg',
connection: process.env.DATABASE_URL , // Change these with your own database connection URL.
migrations: {
directory: './src/migrations'
},
useNullAsDefault: true
}
};