dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

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

Open drstonephd opened this issue 5 months ago • 0 comments

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 avatar Sep 13 '24 23:09 drstonephd