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

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