From 40ed6d9e2940c01a4cbc340a8089c21cd0a467f4 Mon Sep 17 00:00:00 2001 From: Justus Greiber <89198375+JustusGreiberORGADATA@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:55:10 +0100 Subject: [PATCH] Add RenameIndex support for MariaDB versions >= 10.5.2 (#1802) Rename index support was added by the following MariaDB issue: https://jira.mariadb.org/browse/MDEV-7318 --- src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs b/src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs index c9c4ff3f..6ab2e146 100644 --- a/src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs +++ b/src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs @@ -52,7 +52,7 @@ internal MariaDbServerVersionSupport([NotNull] ServerVersion serverVersion) public override bool DateTimeCurrentTimestamp => ServerVersion.Version >= new Version(10, 0, 1); public override bool DateTime6 => ServerVersion.Version >= new Version(10, 1, 2); public override bool LargerKeyLength => ServerVersion.Version >= new Version(10, 2, 2); - public override bool RenameIndex => false; + public override bool RenameIndex => ServerVersion.Version >= new Version(10, 5, 2); public override bool RenameColumn => ServerVersion.Version >= new Version(10, 5, 2); public override bool WindowFunctions => ServerVersion.Version >= new Version(10, 2, 0); public override bool FloatCast => false; // The implemented support drops some decimal places and rounds.