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
{{ message }}
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
The TABLE_SCHEMA of the DB is not considered while reading the tables to port over to v4.
Required System information
Node.js version: v18.14.1
NPM version: 9.7.2
Source Strapi version: 3.6.2
Target Strapi version: 4.14.2
Source Database: MySql
Target Database: MySql
Operating system: MacOS
Which script are you running: v3-sql-v4-sql
Describe the bug
While using the v3-sql-v4-sql script on a host that has more than one DB, the tables' names that are being read during the migration include other DB's tables as well.
As a result of this, the porting is terminated because the script can't find matching tables between the v3 and v4 DBs (since it is seeing other tables pertaining to other DBs on the specified host)
Steps to reproduce the behavior
Launch the script v3-sql-v4-sql with yarn start as for the README file
Expected behavior
The script should read only the appropriate tables by considering the Schema of the DB that is being ported over to v4.
Code snippets
As a temporary solution that seems to work, i did this:
Bug report
The
TABLE_SCHEMAof the DB is not considered while reading the tables to port over to v4.Required System information
v18.14.19.7.23.6.24.14.2v3-sql-v4-sqlDescribe the bug
While using the
v3-sql-v4-sqlscript on a host that has more than one DB, the tables' names that are being read during the migration include other DB's tables as well.As a result of this, the porting is terminated because the script can't find matching tables between the v3 and v4 DBs (since it is seeing other tables pertaining to other DBs on the specified host)
Steps to reproduce the behavior
v3-sql-v4-sqlwithyarn startas for the README fileExpected behavior
The script should read only the appropriate tables by considering the Schema of the DB that is being ported over to v4.
Code snippets
As a temporary solution that seems to work, i did this: