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

Commit 7433307b by Sascha Depold

Merge branch 'master' into milestones/2.0.0

2 parents 4481b805 b3186857
...@@ -166,7 +166,7 @@ if(typeof program.env === 'string') { ...@@ -166,7 +166,7 @@ if(typeof program.env === 'string') {
configuration.environment = program.env configuration.environment = program.env
} }
if (program.migrate) { if (program.migrate || program.undo) {
if (configFileExists() || program.url) { if (configFileExists() || program.url) {
var config var config
, options = {} , options = {}
......
...@@ -7,6 +7,7 @@ Notice: All 1.7.x changed are present in 2.0.x aswell ...@@ -7,6 +7,7 @@ Notice: All 1.7.x changed are present in 2.0.x aswell
- instance.createAssociationInstance functionality added [#1213](https://github.com/sequelize/sequelize/pull/1213) - instance.createAssociationInstance functionality added [#1213](https://github.com/sequelize/sequelize/pull/1213)
- fixes a few bugs with transactions in regards to associations - fixes a few bugs with transactions in regards to associations
- add error handling for transaction creation - add error handling for transaction creation
- `sequelize --undo` will now actually undo migrations. Its basically an alias for `sequelize --migrate --undo`. [#1059](https://github.com/sequelize/sequelize/pull/1059)
#### Backwards compatability changes #### Backwards compatability changes
- Hooks are no longer passing value hashes. Instead, they are now passing instances of the model. - Hooks are no longer passing value hashes. Instead, they are now passing instances of the model.
......
...@@ -305,7 +305,7 @@ describe(Support.getTestDialectTeaser("Executable"), function() { ...@@ -305,7 +305,7 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
}) })
}) })
}) })
})(['--migrate --undo', '-mu']) })(['--migrate --undo', '-mu', '--undo', '-u'])
;(function(flags) { ;(function(flags) {
flags.forEach(function(flag) { flags.forEach(function(flag) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!