dijkstra-backend/knexfile.js
2020-02-07 17:55:43 +01:00

24 lines
486 B
JavaScript

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
},
},
}
};