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
Microsoft.EntityFrameworkCore.Database.Command[20102]
Failed executing DbCommand (5ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
ALTER TABLE `User` RENAME COLUMN `Name` TO `Username`;
Failed executing DbCommand (5ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
ALTER TABLE `User` RENAME COLUMN `Name` TO `Username`;
Further technical details
MySQL version: 5.7.30-log MySQL Community Server
Operating system: Windows 10 Pro
Pomelo.EntityFrameworkCore.MySql version: 3.1.1
Microsoft.AspNetCore.App version: 3.1
Other details about my project setup:
All other migrations went smoothly, including AlterColumn and AddColumn
The text was updated successfully, but these errors were encountered:
Steps to reproduce
when creating a migration to rename a column you get an exception
The issue
The command to rename the column is not that of mysql
migrationBuilder.RenameColumn(
name: "Name",
table: "User",
newName: "Username");
Further technical details
MySQL version: 5.7.30-log MySQL Community Server
Operating system: Windows 10 Pro
Pomelo.EntityFrameworkCore.MySql version: 3.1.1
Microsoft.AspNetCore.App version: 3.1
Other details about my project setup:
All other migrations went smoothly, including AlterColumn and AddColumn
The text was updated successfully, but these errors were encountered: