Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 9f9896f5
authored
Sep 19, 2014
by
jtschoonhoven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comply with use strict (aka semicolins are fun and profitable)
1 parent
e16a7bc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
lib/migrator.js
lib/migrator.js
View file @
9f9896f
...
@@ -35,7 +35,7 @@ module.exports = (function() {
...
@@ -35,7 +35,7 @@ module.exports = (function() {
return
new
Utils
.
CustomEventEmitter
(
function
(
emitter
)
{
return
new
Utils
.
CustomEventEmitter
(
function
(
emitter
)
{
if
(
options
.
method
===
'down'
)
{
if
(
options
.
method
===
'down'
)
{
self
.
getCompletedMigrations
(
function
(
err
,
migrations
){
self
.
getCompletedMigrations
(
function
(
err
,
migrations
){
migrations
.
reverse
()
migrations
.
reverse
()
;
self
.
processMigrations
(
err
,
migrations
,
options
,
emitter
);
self
.
processMigrations
(
err
,
migrations
,
options
,
emitter
);
});
});
}
else
{
}
else
{
...
@@ -370,9 +370,9 @@ module.exports = (function() {
...
@@ -370,9 +370,9 @@ module.exports = (function() {
SequelizeMeta
.
find
({
where
:
{
from
:
from
.
migrationId
.
toString
(),
to
:
to
.
migrationId
.
toString
()
}
})
SequelizeMeta
.
find
({
where
:
{
from
:
from
.
migrationId
.
toString
(),
to
:
to
.
migrationId
.
toString
()
}
})
.
success
(
function
(
meta
)
{
.
success
(
function
(
meta
)
{
if
(
meta
){
if
(
meta
){
meta
.
destroy
().
success
(
callback
)
meta
.
destroy
().
success
(
callback
)
;
}
else
{
}
else
{
callback
()
callback
()
;
}
}
});
});
});
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment