Skip to content

Commit

Permalink
chore: move mysql charset upgrade alert to upgrade_from_redwood
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudSheraz committed Dec 4, 2024
1 parent 9b7fedb commit a7fa473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions tutor/commands/upgrade/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def upgrade_from_redwood(context: click.Context, config: Config) -> None:
""",
)

fmt.echo_alert(
"""It is recommended to upgrade your character set and collation of the MySQL database after upgrading to Sumac.
You can use the convert-mysql-utf8mb4-charset do job to upgrade the collation and character set. You can find more details regarding the command at https://docs.tutor.edly.io/local.html#changing-the-mysql-charset-and-collation"""
)


def get_mongo_upgrade_parameters(
docker_version: str, compatibility_version: str
Expand Down
4 changes: 0 additions & 4 deletions tutor/commands/upgrade/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ def upgrade_from_quince(context: click.Context, config: Config) -> None:
upgrade_mongodb(context, config, "5.0.26", "5.0")
upgrade_mongodb(context, config, "6.0.14", "6.0")
upgrade_mongodb(context, config, "7.0.7", "7.0")
fmt.echo_alert(
"""It is recommended to upgrade your character set and collation of the MySQL database after upgrading to Redwood.
You can use the convert-mysql-utf8mb4-charset do job to upgrade the collation and character set. You can find more details regarding the command at https://docs.tutor.edly.io/local.html#changing-the-mysql-charset-and-collation"""
)


def upgrade_mongodb(
Expand Down

0 comments on commit a7fa473

Please sign in to comment.