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

FEATURE: List migrations #134

Open
marchy opened this issue Dec 10, 2022 · 5 comments
Open

FEATURE: List migrations #134

marchy opened this issue Dec 10, 2022 · 5 comments
Labels
suggestion Unapproved suggestion

Comments

@marchy
Copy link

marchy commented Dec 10, 2022

Now that the wonderful console view is implemented, could you please add the command to list migrations?

ie: Having a new 'List Migrations' command here:
Screenshot 2022-12-10 at 6 25 51 PM

This is really crucial when working across multiple environments and you want to check which migrations are currently applied – as well as during development as you temporarily up and down migrations until you get the ORM mappings in the DbContext set up just right.

EF command
dotnet ef migrations list

NOTE: The same parameters from the other commands should be included, such as the starting project, custom arguments being passed in etc.

Keep rocking! 💪

@seclerp seclerp added the suggestion Unapproved suggestion label Dec 11, 2022
@seclerp
Copy link
Member

seclerp commented Dec 11, 2022

Yeah, I think this is quite possible to do. Which particular result representation do you expect after command execution? I think there should be 2 of them:

  • If "Execute commands in terminal" is enabled: show output in that window
  • If "Execute commands in terminal" is disabled: show output in a newly opened modal dialog right after execution is finished

@marchy
Copy link
Author

marchy commented Dec 12, 2022

Hmm I wasn’t really considering the scenario where the terminal window was disabled - maybe can keep it easy and require that it’s enabled?

Otherwise can run into scenarios where folks have dozens (or even hundreds?) of migrations applied and would need a more complex scrolling dialog.

@marchy
Copy link
Author

marchy commented Feb 6, 2023

Is this by chance set to make it in one of the upcoming releases?

@seclerp
Copy link
Member

seclerp commented Feb 6, 2023

Hi @marchy, It's possible but I don't have a specific ETA right now, will update the milestone when it will be cleaner.

@marchy
Copy link
Author

marchy commented Feb 6, 2023

Thank you, kindly appreciate the update! 🙏

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

No branches or pull requests

2 participants