Comments (3)
So does that mean, if I only have these changes in my migration, I can completely remove the migration, and only commit a changed snapshot?
Yes, that should usually work.
from pomelo.entityframeworkcore.mysql.
Maybe related to this?
#1844
@benjaminoerskov That is correct. As part of #1844, we update the metadata (in the snapshot and <Migration>.Designer.cs
file) for all auto_increment
columns and for the model itself.
The ALTER TABLE
statement should be a noop and not change anything, so you could remove them manually from your Up()
/Down()
methods if you want to.
I suggest to target 8.0.2
instead of 8.0.1
. If fixes some migration related issues.
from pomelo.entityframeworkcore.mysql.
@lauxjpn Thank you for your response, and I'm sorry I made a duplicate issue.
So does that mean, if I only have these changes in my migration, I can completely remove the migration, and only commit a changed snapshot?
I am currently targeting 8.0.2, I just noticed the issue started at 8.0.1 :)
from pomelo.entityframeworkcore.mysql.
Related Issues (20)
- ArgumentException: Option 'name' not supported. HOT 11
- Input string was not in a correct format when compare with TimeSpan HOT 1
- After upgrading from 7.0.0 to 8.0.2, SQL translation results are changed and this version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'. HOT 4
- MySQL operations break after InvalidOperationException: Can't Replace Active Reader HOT 2
- Remove explicit reference to `System.Text.Json` package from `Pomelo.EntityFrameworkCore.MySql.Json.Microsoft` package HOT 4
- After upgrading to 8.0.2 .SetAfterSaveBehavior(PropertySaveBehavior.Ignore) generates SQL that updates the column value HOT 7
- Invalid SQL Syntax when adding an entity with a default expression HOT 3
- TimeSpan.TotalHours could not be translated HOT 7
- Error assigning index for [table] HOT 1
- Error adding integer auto-increment column with migration (since 8.0.1)
- System.TypeLoadException: Method 'Quote' in type does not have an implementation. HOT 1
- MariaDB Maxscale Support
- DbContext.Database.Migrate() change guid charset and Collation
- ExecuteDeleteAsync in combination with Take throws InvalidOperationException
- Unnecessary migration is generated after update to 8.0.2 HOT 5
- Custom value conversion fails for byte[] property to GEOMETRY SQL column. HOT 1
- Query for List<string> property could not be translated
- Insertion failed after upgrading .net 6 to .net8
- When use `Min Pool Size = 10` app hangs due to connection timeout HOT 1
- MySQL 8.4.0 error prompt Plugin' mysqlnotative_password 'is not loaded
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pomelo.entityframeworkcore.mysql.