-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In-app mode not working #13
Comments
Hi Catalin, I think Evolve does not find the Migration_Scripts folder in in-app mode.
Don't hesitate to give me some feedback 😃 |
Hi Philippe, Thank you for your quick response.I set the full path to the migration folder and it works. |
I don't reproduce your issue. I think you are struggling with your location path. |
Hi, The problem was that I wanted to migrate the sql files in Application_Start method from Global.asax.cs.I needed to restart IIS and run the application again to solve this.I didn't pay attention to this detail. |
I have an application on .NET 4.5.2, database is SQL Server 2016. MSBuild mode works just fine, but in-app mode is not working and an exception is not thrown.Here is the code I used to create the reference:
SqlConnection conn = new SqlConnection(WebConfiguration.sqlConnectionString);
var evolve = new Evolve.Evolve(conn, msg => Console.WriteLine(msg))
{
Locations = new List { "Migration_Scripts" },
Command = CommandOptions.Migrate,
MetadataTableName = "changelog",
Driver = "SqlClient",
SqlMigrationPrefix = "V",
SqlMigrationSeparator = "__",
SqlMigrationSuffix = ".sql",
PlaceholderPrefix = "${",
PlaceholderSuffix = "}"
};
try
{
evolve.Migrate();
}
catch (Exception ex)
{
}
The text was updated successfully, but these errors were encountered: