[4.2.x] Refs #34320 -- Skipped SchemaTests.test_rename_field_with_check_to_truncated_name on MariaBD 10.5.2+.

This crashes since MariaDB was bumped to 10.5 on Jenkins.
This commit is contained in:
Mariusz Felisiak 2023-09-27 15:51:52 +02:00 committed by GitHub
parent a148461f1f
commit fec4ed0a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -154,6 +154,21 @@ class DatabaseFeatures(BaseDatabaseFeatures):
},
}
)
if self.connection.mysql_is_mariadb and self.connection.mysql_version >= (
10,
5,
2,
):
skips.update(
{
"ALTER TABLE ... RENAME COLUMN statement doesn't rename inline "
"constraints on MariaDB 10.5.2+, this is fixed in Django 5.0+ "
"(#34320).": {
"schema.tests.SchemaTests."
"test_rename_field_with_check_to_truncated_name",
},
}
)
return skips
@cached_property