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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup_enterprise.ps1 not updated to use new database files #3840

Open
skillsinc-Ed opened this issue Mar 28, 2024 · 3 comments
Open

setup_enterprise.ps1 not updated to use new database files #3840

skillsinc-Ed opened this issue Mar 28, 2024 · 3 comments

Comments

@skillsinc-Ed
Copy link

skillsinc-Ed commented Mar 28, 2024

馃悰 Bug Report

Powershell install script is calling out the old database filenames and there is no error checking to see if the files exist before or after the copy command.

Currently is

# Copy database files to user directory
New-Item -ItemType directory -Path C:\CSETDatabase -Force
Copy-Item -Path database\CSETWeb12024.mdf -Destination C:\CSETDatabase\CSETWeb.mdf -Force
Copy-Item -Path database\CSETWeb12024_log.ldf -Destination C:\CSETDatabase\CSETWeb_log.ldf -Force

Should be

# Copy database files to user directory
New-Item -ItemType directory -Path C:\CSETDatabase -Force
Copy-Item -Path database\CSETWeb12120.mdf -Destination C:\CSETDatabase\CSETWeb.mdf -Force
Copy-Item -Path database\CSETWeb12120_log.ldf -Destination C:\CSETDatabase\CSETWeb_log.ldf -Force
@Marcus-Goectau
Copy link
Member

Thanks for catching this. Perhaps a better solution would be for us to allow for passing in the database version via command line arguments and avoid hardcoding that into the script. I will make sure to add a work ticket to get this updated.

@martbillinl
Copy link

A ticket has been created and we will be looking into this issue.

@adamz01h
Copy link

adamz01h commented Jul 7, 2024

I changed the script to this to just copy whatever database was there and it works as expected.

# Copy database files to user directory
New-Item -ItemType directory -Path C:\CSETDatabase -Force
Copy-Item -Path database\CSETWeb*.mdf -Destination C:\CSETDatabase\CSETWeb.mdf -Force
Copy-Item -Path database\CSETWeb*_log.ldf -Destination C:\CSETDatabase\CSETWeb_log.ldf -Force

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

No branches or pull requests

4 participants