Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Error on DbMigration #10958


User avatar
0
andmattia created

Prerequisites

  • What is your product version? 4.8.1 -> 5.11
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? NetCore 3.1

If issue related with ABP Framework

  • What is ABP Framework version? 5.11

I move my app to 5.11 and I find this migration In the same bulk of migration I see a second migration I think is so dangerous. In my case table is empty and no data lost but if I move from different version I can potential lost all data in this table. I see that this migratio is only for raname colum why you decide to release this script and not a Add temp column copy data and remove column?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia

    AspNet Zero is mainly designed for new applications but there are many users like you who upgrades their existing projects. You are right that, we should be more careful about such changes, sorry.

    We will try to find a solution to see if we can handle this or not.

  • User Avatar
    0
    andmattia created

    Hi @ismcagdas

    I think we/you can add a warning on DbMigrator project when table will be delete to advice user.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia

    Thanks, that's a good idea.