'Fluent-migrator always run migration if other migration is running
Is it possible to ensure a migration is always running after update in another migration?
In the example I would like MigrationB to always run on tag "CustomerB" if MigrationA is running.
If there at a later time are changes to MigrationA and TimestampedMigration attribute is updated, I would like MigrationB to run again as well.
Is this possible?
[TimestampedMigration(2022, 05, 02, 15, 18, 30)]
public class MigrationA : Migration
{
public override void Up()
{
// Some code maitaning database
...
}
}
[Tags("CustomerB")]
public class MigrationB : Migration
{
public override void Up()
{
// Some code altering database to fit customer specific requirements
...
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
