不要怂,就是干,撸起袖子干!

Commit 1460d490 by Sascha Depold

use a file for sqlite

1 parent 3b398c38
Showing with 6 additions and 1 deletions
......@@ -26,6 +26,7 @@ module.exports = {
},
sqlite: {
storage: __dirname + '/../tmp/db.sqlite'
},
postgres: {
......
......@@ -34,7 +34,7 @@ var Support = {
options.pool = options.pool || config.pool
var sequelizeOptions = {
logging: options.logging,
// logging: options.logging,
dialect: options.dialect,
port: options.port || process.env.SEQ_PORT || config.port,
pool: options.pool,
......@@ -49,6 +49,10 @@ var Support = {
sequelizeOptions.define = options.define
}
if (!!config.storage) {
sequelizeOptions.storage = config.storage
}
if (process.env.DIALECT === 'postgres-native') {
sequelizeOptions.native = true
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!