migration-scripts icon indicating copy to clipboard operation
migration-scripts copied to clipboard

Error importing many-to-many relationships for multi-word table names

Open molund opened this issue 1 year ago • 0 comments

Bug report

Describe the bug

A new issue was introduced by this commit: https://github.com/strapi/migration-scripts/commit/471c641019a28d87d2076a9a59c604f3d892b587

When a strapi v3 column has a hyphen in its name, "inv_" is being prepended to the strapi v4 column name, causing the migration to fail.

Steps to reproduce the behavior

See the comments added to the commit for the specific line causing the failure

molund avatar Mar 15 '23 21:03 molund