FluentMigrator command returning No migration found
Asked Answered
M

2

5

I created a new public class M203_InsertPercent that will just insert data into the database base on the SQL statement. When I run the Migrate.exe using the connection string and the assembly FluentMigrator.Console returns "No migration found". I look into the database in the version table and my class name is not in that table. Is there something I am missing?

Megan answered 1/8, 2018 at 15:56 Comment(0)
I
6

Make sure your migration class is public as well :

https://github.com/fluentmigrator/documentation/blob/master/articles/faq.md

Inefficacious answered 30/11, 2018 at 10:28 Comment(0)
C
5

Make sure your migration class is decorated with the Migration attribute.

[Migration(203)]
public class M203_InsertPercent : Migration
{
    ...
}
Casi answered 2/8, 2018 at 14:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.