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

Commands: Drop Database #2476

Closed
bricelam opened this issue Jun 26, 2015 · 3 comments
Closed

Commands: Drop Database #2476

bricelam opened this issue Jun 26, 2015 · 3 comments
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Milestone

Comments

@bricelam
Copy link
Contributor

In the past, we've talked about having a command to delete the database (i.e. call EnsureDeleted). Something like...

dnx ef database delete
@rowanmiller rowanmiller added this to the Backlog milestone Jun 26, 2015
@benmillane
Copy link

Would it be possible to have options similar to what we've had in the EF SetInitializer method e.g. DropCreateDatabaseAlways or DropCreateDatabaseIfModelChanges. Something like

dnx . ef migration add NewMigration
dnx . ef migration apply -db DropCreateDB

Not sure on the limitations of the command line stuff as i'm new to it, but enjoying it so far, just feels like it's lacking in power currently.

@bricelam bricelam added the help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. label Oct 8, 2015
@bricelam bricelam modified the milestones: 1.0.0-rc2, Backlog Mar 25, 2016
@bricelam bricelam self-assigned this Mar 25, 2016
@bricelam bricelam removed the 2 - Done label Mar 29, 2016
@bricelam bricelam modified the milestones: Backlog, 1.0.0-rc2 Mar 29, 2016
@bricelam
Copy link
Contributor Author

bricelam commented Apr 1, 2016

dotnet ef database drop was added by @laskoviymishka in PR #4657.

I attempted to add Drop-Database in PR #4907, but ran into issues marshalling script blocks across domain boundaries.

To complete this issue, we need to...

  1. Add a way to get the database name and server from PowerShell (e.g. a Get-DbContext command)
  2. Add the Drop-Database command. The code in bricelam:fist is a good starting point.

@bricelam bricelam removed their assignment Aug 9, 2016
@natemcmaster natemcmaster self-assigned this Aug 11, 2016
@natemcmaster natemcmaster removed the help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. label Aug 11, 2016
@natemcmaster natemcmaster modified the milestones: 1.1.0, Backlog Aug 11, 2016
@natemcmaster
Copy link
Contributor

Added in #6300

@natemcmaster natemcmaster added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Aug 15, 2016
@ajcvickers ajcvickers modified the milestones: 1.1.0-preview1, 1.1.0 Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-enhancement
Projects
None yet
Development

No branches or pull requests

5 participants