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

Get-DbaDbTable, New-DbaDbTable, and Remove-DbaDbTable should use the same paramater name for the table name. #9470

Open
drstonephd opened this issue Sep 13, 2024 · 0 comments
Labels
feature triage required New issue that has not been reviewed by maintainers

Comments

@drstonephd
Copy link

drstonephd commented Sep 13, 2024

Summarize Functionality

I have a splat for Get-DbaDbTable that does not work with New-DbaDbTable. One function expects a "Table" parameter and the other expects a "Name" parameter for the table name. I want to be able to use the same splat for both.

Is there a command that is similiar or close to what you are looking for?

No

Technical Details

The three "*-DbaDbTable" functions don't all use the same paramater name for the table name. I suggest using "Name" as the parameter name. "Table" will need to be added as an alias so that existing code can continue to work.

If there is a "real" possibility that weird user code exists that does a manual check of the fn paramater name, then perhaps just add the appropriate alias to the 3 functions without changing the name.

@drstonephd drstonephd added feature triage required New issue that has not been reviewed by maintainers labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature triage required New issue that has not been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

1 participant