dijkstra-backend-cloudron/knexfile.js

24 lines
489 B
JavaScript

module.exports = {
development: {
client: 'sqlite3',
connection: {
filename: '/app/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
},
},
}
};