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

Commit 2ba49910 by Patrik Björklund

Default dialect in sequelize generatec config

The config.json generated by sequelize -i does not supply a dialect
key/value pair when generating. It defaults to mysql so lets make this
clear by adding it to the config file
1 parent b85e232e
Showing with 6 additions and 3 deletions
...@@ -34,19 +34,22 @@ var writeDefaultConfig = function(config) { ...@@ -34,19 +34,22 @@ var writeDefaultConfig = function(config) {
username: "root", username: "root",
password: null, password: null,
database: 'database_development', database: 'database_development',
host: '127.0.0.1' host: '127.0.0.1',
dialect: 'mysql'
}, },
test: { test: {
username: "root", username: "root",
password: null, password: null,
database: 'database_test', database: 'database_test',
host: '127.0.0.1' host: '127.0.0.1',
dialect: 'mysql'
}, },
production: { production: {
username: "root", username: "root",
password: null, password: null,
database: 'database_production', database: 'database_production',
host: '127.0.0.1' host: '127.0.0.1',
dialect: 'mysql'
} }
}, undefined, 2) + "\n" }, undefined, 2) + "\n"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!