Git Product home page Git Product logo

Comments (3)

lauxjpn avatar lauxjpn commented on June 5, 2024 1

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.

lauxjpn avatar lauxjpn commented on June 5, 2024

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.

benjaminoerskov avatar benjaminoerskov commented on June 5, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.