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
MariaDB's JSON type is an alias for LONGTEXT with a JSON_VALID check. When defining a column of type sqlalchemy.dialects.mysql.JSON, Alembic keeps generating a migration of existing_type=mysql.LONGTEXT(charset='utf8mb4', collation='utf8mb4_bin') to type_=mysql.JSON().
Expected behavior
I would expect Alembic to not detect any changes between LONGTEXT with JSON_VALID check and sqlalchemy.dialects.mysql.JSON.
To Reproduce
Add an sqlalchemy.dialects.mysql.JSON column
Create a migration & upgrade
Create another migration. This will cause another migration with an operation like the one below to be created.
Describe the bug
MariaDB's JSON type is an alias for LONGTEXT with a JSON_VALID check. When defining a column of type
sqlalchemy.dialects.mysql.JSON
, Alembic keeps generating a migration ofexisting_type=mysql.LONGTEXT(charset='utf8mb4', collation='utf8mb4_bin')
totype_=mysql.JSON()
.Expected behavior
I would expect Alembic to not detect any changes between LONGTEXT with JSON_VALID check and
sqlalchemy.dialects.mysql.JSON
.To Reproduce
sqlalchemy.dialects.mysql.JSON
columnError
None.
Versions.
Additional context
None.
The text was updated successfully, but these errors were encountered: