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 fddc9e9c
authored
Jan 22, 2014
by
Bulkan Evcimen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use triple equals
1 parent
cc054e94
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/dialects/sqlite/query-interface.js
lib/query-interface.js
lib/dialects/sqlite/query-interface.js
View file @
fddc9e9
...
...
@@ -156,7 +156,7 @@ var QueryInterface = module.exports = {
tableNames
.
forEach
(
function
(
tableName
)
{
// if tableName is not in the Array of tables names then dont drop it
if
(
skip
.
indexOf
(
tableName
)
==
-
1
)
{
if
(
skip
.
indexOf
(
tableName
)
==
=
-
1
)
{
queries
.
push
(
self
.
QueryGenerator
.
dropTableQuery
(
tableName
).
replace
(
';'
,
''
))
}
})
...
...
lib/query-interface.js
View file @
fddc9e9
...
...
@@ -269,7 +269,7 @@ module.exports = (function() {
// add the table removal query to the chainer
tableNames
.
forEach
(
function
(
tableName
)
{
// if tableName is not in the Array of tables names then dont drop it
if
(
skip
.
indexOf
(
tableName
)
==
-
1
)
{
if
(
skip
.
indexOf
(
tableName
)
==
=
-
1
)
{
chainer
.
add
(
self
,
'dropTable'
,
[
tableName
,
{
cascade
:
true
}
])
}
})
...
...
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