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

New-DbaDatabase: Fix issues with generated filenames #7985

Merged
merged 10 commits into from
Dec 7, 2021

Conversation

andreasjordan
Copy link
Contributor

Type of Change

Fixes for the linked issue.

But this will also effect the filenames when used without advanced parameters, as now the "special" filenames are created always:
image

image

@potatoqualitee
Copy link
Member

I'm sorry, I'm confused. Does this deviate from Microsoft's default naming standard? Or does it better align with it?

@andreasjordan
Copy link
Contributor Author

Let me share two screenshot.

This one is done with the current version of dbatools:
image

Database "tsql" is for reference. Database dba1 does not use any "advanced" parameter, database "dba2" uses an advanced parameter to run the advanded section of the code. Here you see the different names for both logical and physical filenames.

This one is from the current branch in this pull request:
image

Same commands, same output for the first two. But the last one now follows the same rules like in "tsql".

@potatoqualitee
Copy link
Member

hell yeah! thank you 💯 💯 💯

@potatoqualitee potatoqualitee merged commit d792f0e into development Dec 7, 2021
@potatoqualitee potatoqualitee deleted the 7981_NewDbaDatabase branch December 7, 2021 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New-DbaDatabase + (Test-Bound) - DataFileSuffix & LogFileSuffix Don't trigger advancedconfig or using default
2 participants