Closed weylermaldonado closed 5 years ago
This is my migrations.js file
const mysql = require('mysql'); const migration = require('mysql-migrations'); const connection = mysql.createPool({ connectionLimit : 10, host: 'host', user: 'user', password: 'mypass', database: 'my_db' }); migration.init(connection, __dirname + '/migrations');
but when I run node migration.js add migration create_table_users get this error:
node migration.js add migration create_table_users
ER_TOO_LONG_KEY: Specified key was too long; max key length is 767 bytes
but I don't create any table, and all credentials and database are correct. Any ideas?
I think it could be one of these:
Closing the issue.
This is my migrations.js file
but when I run
node migration.js add migration create_table_users
get this error:but I don't create any table, and all credentials and database are correct. Any ideas?