Skip to content

Commit

Permalink
fixed ps script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Raczek committed Dec 6, 2024
1 parent b5221d2 commit 6c9d069
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions downloadBackupAndJDBCDrivers.ps1
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
Write-Output "Downloading AdventureWorks2008R2FullDatabaseBackup"
New-Item -Path './zip' -ItemType Directory -Force
(New-Object System.Net.WebClient).DownloadFile("https://github.com/raczeja/DBTestCompare_backups/raw/master/AdventureWorks2008R2FullDatabaseBackup.zip", "./zip/AdventureWorks2008R2FullDatabaseBackup.zip")
Invoke-WebRequest -Uri "https://github.com/raczeja/DBTestCompare_backups/raw/master/AdventureWorks2008R2FullDatabaseBackup.zip" -OutFile "./zip/AdventureWorks2008R2FullDatabaseBackup.zip"
Write-Output "Unzipping AdventureWorks2008R2FullDatabaseBackup"
Expand-Archive -LiteralPath './zip/AdventureWorks2008R2FullDatabaseBackup.zip' -DestinationPath ./docker -Force

Write-Output "Downloading sqljdbc drivers"
(New-Object System.Net.WebClient).DownloadFile("https://download.microsoft.com/download/4/0/8/40815588-bef6-4715-bde9-baace8726c2a/sqljdbc_8.2.0.0_enu.zip", "./zip/sqljdbc_8.2.0.0_enu.zip")
Invoke-WebRequest -Uri "https://download.microsoft.com/download/4/0/8/40815588-bef6-4715-bde9-baace8726c2a/sqljdbc_8.2.0.0_enu.zip" -OutFile "./zip/sqljdbc_8.2.0.0_enu.zip"
Write-Output "Unzipping sqljdbc drivers"
Expand-Archive -LiteralPath './zip/sqljdbc_8.2.0.0_enu.zip' -DestinationPath "./zip/sqljdbc" -Force
Copy-Item -Path "./zip/sqljdbc/sqljdbc_8.2/enu/*" -Destination "./jdbc_drivers" -Include "mssql-jdbc-*.jar"

Write-Output "Downloading mysql sctipts"
(New-Object System.Net.WebClient).DownloadFile("https://github.com/raczeja/DBTestCompare_backups/raw/master/my-mysql/sql-scripts/sql-scripts.zip","./zip/sql-scripts-mysql.zip")
Invoke-WebRequest -Uri "https://github.com/raczeja/DBTestCompare_backups/raw/master/my-mysql/sql-scripts/sql-scripts.zip" -OutFile "./zip/sql-scripts-mysql.zip"
Write-Output "Unzipping mysql sctipts"
Expand-Archive -LiteralPath './zip/sql-scripts-mysql.zip' -DestinationPath "./docker/my-mysql/sql-scripts" -Force

Write-Output "Downloading postgres sctipts"
(New-Object System.Net.WebClient).DownloadFile( "https://github.com/raczeja/DBTestCompare_backups/raw/master/my-postgres/sql-scripts/sql-scripts.zip","./zip/sql-scripts-postgres.zip")
Invoke-WebRequest -Uri "https://github.com/raczeja/DBTestCompare_backups/raw/master/my-postgres/sql-scripts/sql-scripts.zip" -OutFile "./zip/sql-scripts-postgres.zip"
Write-Output "Unzipping postgres sctipts"
Expand-Archive -LiteralPath './zip/sql-scripts-postgres.zip' -DestinationPath "./docker/my-postgres/sql-scripts" -Force

0 comments on commit 6c9d069

Please sign in to comment.