lib/adapters/mysql.js
function (name, generator, options) {
            options = options || {};
            var engine = options.engine, charset = options.charset, collate = options.collate;
            if (isUndefined(engine)) {
                engine = this._static.defaultEngine;
            }
            if (isUndefined(charset)) {
                charset = this._static.defaultCharset;
            }
            if (isUndefined(collate)) {
                collate = this._static.defaultCollate;
            }
            generator.columns.forEach(function (c) {
                var t = c.table;
                if (t) {
                    delete c.table;
                    generator.foreignKey([c.name], t, merge({}, c, {name: null, type: "foreignKey"}));
                }
            });
            return format(" %s%s%s%s", this._super(arguments), engine ? " ENGINE=" + engine : "",
                charset ? " DEFAULT CHARSET=" + charset : "", collate ? " DEFAULT COLLATE=" + collate : "");
        }
function (name, generator, options) {
            options = options || {};
            var engine = options.engine, charset = options.charset, collate = options.collate;
            if (isUndefined(engine)) {
                engine = this._static.defaultEngine;
            }
            if (isUndefined(charset)) {
                charset = this._static.defaultCharset;
            }
            if (isUndefined(collate)) {
                collate = this._static.defaultCollate;
            }
            generator.columns.forEach(function (c) {
                var t = c.table;
                if (t) {
                    delete c.table;
                    generator.foreignKey([c.name], t, merge({}, c, {name: null, type: "foreignKey"}));
                }
            });
            return format(" %s%s%s%s", this._super(arguments), engine ? " ENGINE=" + engine : "",
                charset ? " DEFAULT CHARSET=" + charset : "", collate ? " DEFAULT COLLATE=" + collate : "");
        }
function ( name , generator , options ) { options = options || { } ; var engine = options . engine , charset = options . charset , collate = options . collate ; if ( isUndefined ( engine ) ) { engine = this . _static . defaultEngine ; } if ( isUndefined ( charset ) ) { charset = this . _static . defaultCharset ; } if ( isUndefined ( collate ) ) { collate = this . _static . defaultCollate ; } generator . columns . forEach ( function ( c ) { var t = c . table ; if ( t ) { delete c . table ; generator . foreignKey ( [ c . name ] , t , merge ( { } , c , { name : null , type : "foreignKey" } ) ) ; } } ) ; return format ( " %s%s%s%s" , this . _super ( arguments ) , engine ? " ENGINE=" + engine : "" , charset ? " DEFAULT CHARSET=" + charset : "" , collate ? " DEFAULT COLLATE=" + collate : "" ) ; }
Use MySQL specific syntax for engine type and character encoding
Use MySQL specific syntax for engine type and character encoding