Made additional bug-fix changes as noted in comments previously, however while I'm fairly certain the changes are correct, not as sure about how to test. I kind of wonder if changing the USING clause even needs to be supported.
This commit is contained in:
parent
25202bd455
commit
b15aa88681
|
@ -469,7 +469,7 @@ MySQL.prototype.alterTable = function (model, actualFields, actualIndexes, done,
|
||||||
var type = '';
|
var type = '';
|
||||||
var kind = '';
|
var kind = '';
|
||||||
if (i.type) {
|
if (i.type) {
|
||||||
type = 'USING ' + i.kind;
|
type = 'USING ' + i.type;
|
||||||
}
|
}
|
||||||
if (i.kind) {
|
if (i.kind) {
|
||||||
kind = i.kind;
|
kind = i.kind;
|
||||||
|
@ -541,7 +541,7 @@ MySQL.prototype.singleIndexSettingsSQL = function (model, prop) {
|
||||||
type = 'USING ' + i.type;
|
type = 'USING ' + i.type;
|
||||||
}
|
}
|
||||||
if (i.kind) {
|
if (i.kind) {
|
||||||
// kind = i.kind;
|
kind = i.kind;
|
||||||
}
|
}
|
||||||
if (kind && type) {
|
if (kind && type) {
|
||||||
return (kind + ' INDEX `' + prop + '` (`' + prop + '`) ' + type);
|
return (kind + ' INDEX `' + prop + '` (`' + prop + '`) ' + type);
|
||||||
|
@ -556,7 +556,7 @@ MySQL.prototype.indexSettingsSQL = function (model, prop) {
|
||||||
var type = '';
|
var type = '';
|
||||||
var kind = '';
|
var kind = '';
|
||||||
if (i.type) {
|
if (i.type) {
|
||||||
type = 'USING ' + i.kind;
|
type = 'USING ' + i.type;
|
||||||
}
|
}
|
||||||
if (i.kind) {
|
if (i.kind) {
|
||||||
kind = i.kind;
|
kind = i.kind;
|
||||||
|
|
Loading…
Reference in New Issue