-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set app.migrating to true when called via migrateByName
- Loading branch information
Tom Kirkpatrick
authored and
Tom Kirkpatrick
committed
Feb 1, 2017
1 parent
718a100
commit 722cab5
Showing
5 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/fixtures/simple-app/server/migrations/0001-initialize.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module.exports = { | ||
up: function(dataSource, next) { | ||
next(); | ||
process.nextTick(() => next()) | ||
}, | ||
down: function(dataSource, next) { | ||
next(); | ||
process.nextTick(() => next()) | ||
} | ||
}; |
4 changes: 2 additions & 2 deletions
4
test/fixtures/simple-app/server/migrations/0002-somechanges.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module.exports = { | ||
up: function(dataSource, next) { | ||
next(); | ||
process.nextTick(() => next()) | ||
}, | ||
down: function(dataSource, next) { | ||
next(); | ||
process.nextTick(() => next()) | ||
} | ||
}; |
4 changes: 2 additions & 2 deletions
4
test/fixtures/simple-app/server/migrations/0003-morechanges.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module.exports = { | ||
up: function(dataSource, next) { | ||
next(); | ||
process.nextTick(() => next()) | ||
}, | ||
down: function(dataSource, next) { | ||
next(); | ||
process.nextTick(() => next()) | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters