summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-27 15:51:52 +0200
committerGitHub <noreply@github.com>2023-09-27 15:51:52 +0200
commitfec4ed0a250841f41066cbbc9581993ba378d268 (patch)
treef2537075c50a5aaeefca2ef83bde80abbd879a6e
parenta148461f1fa7aceb2ea6c9dc203b67a170884445 (diff)
[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.
-rw-r--r--django/db/backends/mysql/features.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py
index 14fde6b08e..2cda788c2c 100644
--- a/django/db/backends/mysql/features.py
+++ b/django/db/backends/mysql/features.py
@@ -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