cset icon indicating copy to clipboard operation
cset copied to clipboard

setup_enterprise.ps1 not updated to use new database files

Open skillsinc-Ed opened this issue 3 months ago • 2 comments

🐛 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

skillsinc-Ed avatar Mar 28 '24 19:03 skillsinc-Ed

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.

Marcus-Goectau avatar Apr 03 '24 00:04 Marcus-Goectau