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

Deploying DB Migrations from build output from pure PowerShell #7942

Closed
dgee2 opened this issue Mar 21, 2017 · 1 comment
Closed

Deploying DB Migrations from build output from pure PowerShell #7942

dgee2 opened this issue Mar 21, 2017 · 1 comment

Comments

@dgee2
Copy link

dgee2 commented Mar 21, 2017

Hi,

I'm working on a project using EF Core where we want to be able to deploy the database migrations (and probably a fresh DB) from a PowerShell prompt as part of our CI.
Is there a way that we can use PowerShell to deploy the database migrations from our built binaries without having to do some lifting and shifting of source code and the Microsoft.EntityFrameworkCore.Tools or Microsoft.EntityFrameworkCore.Tools.DotNet package and using dotnet ef?

It is very undesirable for us to have to ship the source along with the binaries in order to run the deployment to the database and we cannot run the deployment from the Package Manager Console.

We are targeting: netcoreapp1.1
EFCore: Microsoft.EntityFrameworkCore.SqlServer: 1.1.1

Any help on this (or if you think that we're just attacking this from the wrong direction) would be massively appreciated.

@ajcvickers
Copy link
Contributor

@dgee2 This seems like a duplicate of issue #6313. Reading through that should give you some idea of what we have already, but as that issue indicates, this is an area where we want to make the experience better.

Also, this scenario won't involve the PowerShell commands even when we make improvements to it, but rather a stand-alone "executable". You can of course invoke that executable from PowerShell.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants