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 ea264aba
authored
Jul 22, 2013
by
Daniel Durante
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into newbust
2 parents
89c96808
dbfe8a79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/dialects/mysql/query-generator.js
lib/dialects/sqlite/query-generator.js
lib/dialects/mysql/query-generator.js
View file @
ea264ab
...
...
@@ -377,7 +377,7 @@ module.exports = (function() {
},
options
||
{})
return
Utils
.
_
.
compact
([
"CREATE"
,
options
.
indicesType
,
"INDEX"
,
options
.
indexName
,
"CREATE"
,
options
.
indicesType
,
"INDEX
IF NOT EXISTS
"
,
options
.
indexName
,
(
options
.
indexType
?
(
'USING '
+
options
.
indexType
)
:
undefined
),
"ON"
,
tableName
,
'('
+
transformedAttributes
.
join
(
', '
)
+
')'
,
(
options
.
parser
?
"WITH PARSER "
+
options
.
parser
:
undefined
)
...
...
lib/dialects/sqlite/query-generator.js
View file @
ea264ab
...
...
@@ -378,7 +378,7 @@ module.exports = (function() {
},
removeIndexQuery
:
function
(
tableName
,
indexNameOrAttributes
)
{
var
sql
=
"DROP INDEX <%= indexName %>"
var
sql
=
"DROP INDEX
IF EXISTS
<%= indexName %>"
,
indexName
=
indexNameOrAttributes
if
(
typeof
indexName
!==
'string'
)
{
...
...
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