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?
FluentMigrator command returning No migration found
Asked Answered
Make sure your migration class is public as well :
https://github.com/fluentmigrator/documentation/blob/master/articles/faq.md
Make sure your migration class is decorated with the Migration
attribute.
[Migration(203)]
public class M203_InsertPercent : Migration
{
...
}
© 2022 - 2024 — McMap. All rights reserved.