Skip to content

Commit 40ed6d9

Browse files
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
1 parent e7a8e2d commit 40ed6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ internal MariaDbServerVersionSupport([NotNull] ServerVersion serverVersion)
5252
public override bool DateTimeCurrentTimestamp => ServerVersion.Version >= new Version(10, 0, 1);
5353
public override bool DateTime6 => ServerVersion.Version >= new Version(10, 1, 2);
5454
public override bool LargerKeyLength => ServerVersion.Version >= new Version(10, 2, 2);
55-
public override bool RenameIndex => false;
55+
public override bool RenameIndex => ServerVersion.Version >= new Version(10, 5, 2);
5656
public override bool RenameColumn => ServerVersion.Version >= new Version(10, 5, 2);
5757
public override bool WindowFunctions => ServerVersion.Version >= new Version(10, 2, 0);
5858
public override bool FloatCast => false; // The implemented support drops some decimal places and rounds.

0 commit comments

Comments
 (0)