Skip to content

Commit 2ef6dd9

Browse files
authored
Merge pull request #225 from microsoft/cleanup-upgrade-downgrade-story-2
PS: Cleanup upgrade/downgrade chains
2 parents a1bfbb3 + 2bf076d commit 2ef6dd9

File tree

24 files changed

+69
-19864
lines changed

24 files changed

+69
-19864
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,8 @@
8888
# swift prebuilt resources
8989
/swift/third_party/resources/*.zip filter=lfs diff=lfs merge=lfs -text
9090
/swift/third_party/resources/*.tar.zst filter=lfs diff=lfs merge=lfs -text
91+
92+
# This upgrade script must use windows line-endings to be compatible with old
93+
# databases.
94+
/powershell/ql/lib/upgrades/ce269c61feda10a8ca0d16519085f7e55741a694/old.dbscheme eol=crlf
95+
/powershell/downgrades/802d5b9f407fb0dac894df1c0b4584f2215e1512/semmlecode.powershell.dbscheme eol=crlf

powershell/build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if ($LASTEXITCODE -ne 0) {
1111

1212
$powershellFolder = Join-Path -Path $cliFolder -ChildPath "powershell"
1313
Copy-Item -Path "$PSScriptRoot/codeql-extractor.yml" -Destination $powershellFolder -Force
14+
Copy-Item -Path "$PSScriptRoot/downgrades" -Destination $powershellFolder -Recurse -Force
1415
$qlLibFolder = Join-Path -Path "$PSScriptRoot/ql" -ChildPath "lib"
1516
Copy-Item -Path (Join-Path $qlLibFolder "semmlecode.powershell.dbscheme") -Destination $powershellFolder -Force
1617
Copy-Item -Path (Join-Path $qlLibFolder "semmlecode.powershell.dbscheme.stats") -Destination $powershellFolder -Force

0 commit comments

Comments
 (0)