C
C#13mo ago
TocnoSanZna

❔ Not sure should I leave the automatic table alteration (postgres EF Core 3.0 to EF Core 6.0)

You can see on the picture that EF Core has added some non intentional AlterColumn entries. I guess this is due to the issue described here https://duongnt.com/datetime-net6-postgresql/. Is it safe to leave these alterations or should I delete them and just leave the stuff that I actually changed?
duongnt.bk
Duong's Blog
Datetime error with .NET 6 and PostgreSQL - Duong's Blog
While upgrading a project to .NET 6, I ran into an datetime issue with the latest npgsql efcore provider. Today, we will look at the cause and try to fix it.
2 Replies
JakenVeina
JakenVeina13mo ago
yoooo, I remember having this exact issue, I think is this an existing database that has already had migrations applied to it? if not, I'd recommend just dropping and rebuilding migrations if so, then you have to make a decision are you okay with these columns changing data type? if so, leave the migration as-is if not, you need to change your data model to eliminate this change I.E. to explicitly declare that "timestamp with time zone" is the data type you want cause right now, the issue is that you've left it open to interpretation, and EF has changed how it interprets ambigouous parts of your model
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Writing VS Extension to Support Language with TextMate Grammar FileHello, I am trying to write extension to support BNF(Backus–Naur form) metalanguage files. I am try❔ Change trigger behavior from code behind(!)Hello again. I am still making a chess game using wpf&wcf. And the problem is that entire board is g❔ Getting SQL data from a relationship tableHello, for my school assignment I have to make a winforms app. Currently I have 3 tables in my SQL D❔ Fast Fourier Transform. I need to make app displaying image and result like ImageJImageJ: https://imagej.net/ij/ So i've chosen to make WPF app because im familiar with it and .NET i❔ ✅ I feel like I've gotten lost in what I'm doing right now, pls help.```cs public async Task DisplayUpdatedTicketsAsync(){ await UpdateTicketsAsync(); DisplayTic❔ How Configure Visual Studio to use webservice SOAP with .p12 certificateLet's see if someone can help me to connect SOAP with .pk certificate using visual studio, I'm alrea❔ About learning C# and Asp.net coreHello guys, i wanna ask something about learning path to web development with c#. I am learning C# ✅ How to fill JObject?I have following: var payload = new JObject{}; I'd like to fill this payload with random data and ❔ Cannot run python processHi I am trying to start the python process by using the Process class in the asp net app hosted in d✅ Resolving an ambiguous assembly referenceWe recently upgraded an included NuGet package from version `2.0.1` to `3.0.1` (Spring.NET, in case