dijkstra-backend/knexfile.js

24 lines
486 B
JavaScript
Raw Normal View History

2020-02-07 16:55:43 +00:00
module.exports = {
development: {
client: 'sqlite3',
connection: {
filename: './data/database_file.db3',
},
useNullAsDefault: true,
migrations: {
directory: './data/migrations'
},
seeds: {
directory: './data/seeds'
},
pool: {
afterCreate: (conn, done) => {
// runs after a connection is made to the sqlite engine
conn.run('PRAGMA foreign_keys = ON', done); // turn on FK enforcement
},
},
}
};