Skip to content

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

@barotyash

Description

@barotyash

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions