feat(api): add knex configuration
This commit is contained in:
14
backend/knexfile.js
Normal file
14
backend/knexfile.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export default {
|
||||
client: 'better-sqlite3',
|
||||
connection: {
|
||||
filename: process.env.DB_PATH || './data/cv.db'
|
||||
},
|
||||
migrations: {
|
||||
directory: './migrations',
|
||||
tableName: 'knex_migrations'
|
||||
},
|
||||
seeds: {
|
||||
directory: './seeds'
|
||||
},
|
||||
useNullAsDefault: true
|
||||
};
|
||||
Reference in New Issue
Block a user