I manually changed the datatype of content to JSON in MySQL, and it worked
To make this the default behavior we'll have to update the Tortoise ORM JSONField which always stores it as a Text field for MySQL. I think this is because MySQL introduced JSON datatype from MySQL 8.0
Aerich version - 0.5.3 Databae - MySQL 8 I have a total of 22 tables, and when I do
aerich init-db
I'm getting an errorThe new
content
field to store the entire migration JSON inAerich
overflows the MySQLtext
dataype limit of 64 KilobytesI manually changed the datatype of
content
toJSON
in MySQL, and it workedTo make this the default behavior we'll have to update the Tortoise ORM
JSONField
which always stores it as aText
field for MySQL. I think this is because MySQL introducedJSON
datatype from MySQL 8.0@long2ice any workarounds to fix this?