question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename field error

See original GitHub issue

The issue

  1. rename IsActive to is_active
  2. use command dotnet ef migrations add rename_is_active is OK
  3. use command dotnet ef database update => error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘COLUMN Is_Active TO is_active’ at line 1

image

my class image

Exception message:
Stack trace:

Further technical details

mariadb version: 10.3.34 Operating system: windows 10 Pomelo.EntityFrameworkCore.MySql version: 6.0.1 Microsoft.EntityFrameworkCore: 6.0.3 Microsoft.EntityFrameworkCore.Design: 6.0.3 Microsoft.EntityFrameworkCore.Proxies: 6.0.3 Microsoft.EntityFrameworkCore.Tools: 6.0.3 Other details about my project setup: image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mguinnesscommented, Mar 30, 2022

Change new MySqlServerVersion(new Version(10, 3, 34)) to new MariaDbServerVersion(new Version(10, 3, 34))

0reactions
jerateepcommented, Mar 30, 2022

@mguinness Thanks you. it work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error renaming a column in MySQL
Error renaming a column in MySQL · 5. You're trying to change a table that has a foreign key reference in it. –...
Read more >
Error: The field "[fieldname]" was renamed conflic...
In the case where you are renaming a field that already has that name, the duplicate will be renamed by appending the copy...
Read more >
The field "XXX" was renamed conflicting with an ex...
I am running a workflow to format my inputs. However, I get this error (The field "XXX" was renamed conflicting with an existing...
Read more >
FIX: Error occurs when you rename a column on temporal ...
FIX: Error occurs when you rename a column on temporal current table in SQL Server.
Read more >
Error after renaming a custom field
I am experiencing the following issue - I wanted to replace a custom field with a new one. So what I did is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found