You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Knex version: 2.4.2
Database + version: MySQL 5.6.51
OS: Oracle Linux
Bug
When attempting to rename an enum column type in a migration, an error is thrown:
migration failed with error: object is not iterable (cannot read property Symbol(Symbol.iterator))
TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))
at ./node_modules/knex/lib/dialects/mysql/schema/mysql-tablecompiler.js:86:48
at async Runner.ensureConnection (./node_modules/knex/lib/execution/runner.js:300:14)
at async Runner.run (./node_modules/knex/lib/execution/runner.js:30:19)
at async Migrator._runBatch (./node_modules/knex/lib/migrations/migrate/Migrator.js:381:19)
The text was updated successfully, but these errors were encountered:
andybee
changed the title
renameColumn throws an error when renaming enu column type on MySQLrenameColumn throws an error when renaming enum column type on MySQL
Feb 19, 2023
Environment
Knex version: 2.4.2
Database + version: MySQL 5.6.51
OS: Oracle Linux
Bug
When attempting to rename an
enum
column type in a migration, an error is thrown:Example migrations that replicate the error:
The text was updated successfully, but these errors were encountered: