// MySQL Column Compiler // ------- const { inherits } = require('util'); const ColumnCompiler = require('../../../schema/columncompiler'); const { isObject } = require('../../../util/is'); const commentEscapeRegex = /(? 255) { this.client.logger.warn( 'Your comment is longer than the max comment length for MySQL' ); } return comment && `comment '${comment.replace(commentEscapeRegex, "\\'")}'`; }, first() { return 'first'; }, after(column) { return `after ${this.formatter.wrap(column)}`; }, collate(collation) { return collation && `collate '${collation}'`; }, }); module.exports = ColumnCompiler_MySQL;