tortoise / tortoise/tortoise-orm

CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci

Open
#1,191 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.6k
Forks
516
Avg merge
2d 21h
Merged PRs (30d)
9

Description

Describe the bug
CHARSET=utf8mb4,COLLATE=utf8mb4_general_ci They are configured in the mysql configuration file and the database used, but after I use tortoise-orm to create the table, they all use CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci

To Reproduce
Steps to reproduce the behavior, preferably a small code snippet.

Expected behavior
I want the table he created to also use CHARSET=utf8mb4,COLLATE=utf8mb4_general_ci,Is it a problem of aiomysql or tortoise-orm? what should I do

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or reproduction code are named. Start by reproducing table creation with Tortoise ORM and the stated MySQL charset and collation settings, then compare the generated table definition with the configured values; done means the table retains utf8mb4_general_ci or the responsible component is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, python
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.