Skip to main content

MySQLクライアントに対応しているのは mysql2 パッケージのみ

AI Marketer 5では、MySQLデータベースに対して mysql2 パッケージのみを使用でき、それに対する client 値は mysql に設定する必要があります。

This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

🔌 Is this breaking change affecting plugins?No
🤖 Is this breaking change automatically handled by a codemod?Yes

破壊的変更の説明

AI Marketer v4では

MySQLデータベースのデータベース設定 client オプションは mysqlmysql2 など、複数の値を受け入れます。

AI Marketer 5では

MySQLデータベースのデータベース設定 client オプションは mysql のみを受け入れます。

移行

This section regroups useful notes and procedures about the introduced breaking change.

注意点

  • AI Marketer 5は、内部的にSQLiteデータベースに対して mysql2 パッケージを使用し、Knexに対して mysql オプションを mysql2 に書き換えます。
  • データベースクライアントと設定についての詳細情報は、データベース設定のドキュメンテーションで見つけることができます。
  • また、AI Marketer 5にはMySQL v8が最低限必要です(関連する破壊的変更のエントリーを参照してください)。

手動での手順

アップグレードツールのcodemodsがこの変更を処理するため、手動での移行は必要ないはずです。