This commit is contained in:
yoncodes
2025-10-28 21:21:28 -04:00
commit e58fd190b4
2962 changed files with 3063199 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Get-ChildItem -Filter *.sql | ForEach-Object {
$content = Get-Content $_.FullName -Raw
$original = $content
# Remove trailing commas before closing parenthesis
$content = $content -replace ',(\s*)\)', '$1)'
if ($content -ne $original) {
Set-Content -Path $_.FullName -Value $content -NoNewline
Write-Host "Fixed: $($_.Name)" -ForegroundColor Green
}
}
Write-Host "`nDone! All trailing commas removed." -ForegroundColor Cyan