Open Closed

Where should Migrations go in Module Solution #3028


User avatar
0
chris.tune@gmail.com created
  • ABP Framework version: v5.2

  • UI type: Angular /

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes / no

  • Exception message and stack trace:

  • Steps to reproduce the issue:"

I have a module solution which has all the hosts such as Unified, API host etc.
I'm a bit confused as to where I add the Migrations for new entities as it mentions using unified, but If I'm using this as a module on an angular app OR other where should these be?

Cheers
Chris


3 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @chris.tune,

    You can add the new migrations to *HttpApi.Host project if you want to develop Angular UI.

  • User Avatar
    0
    chris.tune@gmail.com created

    Thanks @yekalkan

    So If I'm creating a module which can be used across all types of project(angular MVC etc) I would add a migration to each type of host?

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    So If I'm creating a module which can be used across all types of project(angular MVC etc) I would add a migration to each type of host?

    True.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on May 28, 2025, 08:51