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
不要怂,就是干,撸起袖子干!
You need to sign in or sign up before continuing.
Commit 5aca6108
authored
Mar 03, 2016
by
Trey Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MariaDB: drop foreign key before dropping column
1 parent
a06a92d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
lib/query-interface.js
lib/query-interface.js
View file @
5aca610
...
@@ -364,7 +364,8 @@ QueryInterface.prototype.removeColumn = function(tableName, attributeName, optio
...
@@ -364,7 +364,8 @@ QueryInterface.prototype.removeColumn = function(tableName, attributeName, optio
// mssql needs special treatment as it cannot drop a column with a default or foreign key constraint
// mssql needs special treatment as it cannot drop a column with a default or foreign key constraint
return
MSSSQLQueryInterface
.
removeColumn
.
call
(
this
,
tableName
,
attributeName
,
options
);
return
MSSSQLQueryInterface
.
removeColumn
.
call
(
this
,
tableName
,
attributeName
,
options
);
case
'mysql'
:
case
'mysql'
:
// mysql needs special treatment as it cannot drop a column with a foreign key constraint
case
'mariadb'
:
// mysql/maria needs special treatment as it cannot drop a column with a foreign key constraint
return
MySQLQueryInterface
.
removeColumn
.
call
(
this
,
tableName
,
attributeName
,
options
);
return
MySQLQueryInterface
.
removeColumn
.
call
(
this
,
tableName
,
attributeName
,
options
);
default
:
default
:
var
sql
=
this
.
QueryGenerator
.
removeColumnQuery
(
tableName
,
attributeName
);
var
sql
=
this
.
QueryGenerator
.
removeColumnQuery
(
tableName
,
attributeName
);
...
...
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