Skip to content
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

Inconsistent behavior in treating paths in Evolve.Evolve() on Windows and Linux #301

Open
barotyash opened this issue May 11, 2023 · 1 comment

Comments

@barotyash
Copy link

Migration scripts are deployed in "{ProjectFolder}\migrations*.sql;"
This task is invoked on startup:

${rootPathToMigrations} = this.hostingEnvironment.ContentRootPath

var evolve = new EvolvePackage.Evolve(databaseConnection, message => this.Log.Info(message))
{
Locations = new[] { $"{rootPathToMigrations}\" },
IsEraseDisabled = true,
};
So, path is "{ProjectFolder}/migrations/"

and on Linux SQL scripts are not found => and it is correct behavior
BUT on Windows SQL scripts are perfectly found.
From my understanding, on Windows Scripts shall not be found either

@tom-haines
Copy link

What are the two values of rootPathToMigrations for the Linux and Windows runtimes respectively?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants