fix migrate scripts
This commit is contained in:
parent
6d70f28db7
commit
df17221c67
2 changed files with 4 additions and 4 deletions
src/EllieBot
|
@ -39,12 +39,12 @@ if ($LASTEXITCODE -ne 0) {
|
|||
# Step 3: Cleanup migration files
|
||||
Write-Output "Cleaning up all migration files..."
|
||||
|
||||
Get-ChildItem "Migrations/Sqlite" -File | Where-Object { $_.Name -like '*_*.cs' } | ForEach-Object {
|
||||
Get-ChildItem "Migrations/Sqlite" -File | Where-Object { $_.Name -like '*.cs' } | ForEach-Object {
|
||||
Write-Output "Deleting: $($_.Name)"
|
||||
Remove-Item $_.FullName -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
Get-ChildItem "Migrations/Postgresql" -File | Where-Object { $_.Name -like '*_*.cs' } | ForEach-Object {
|
||||
Get-ChildItem "Migrations/Postgresql" -File | Where-Object { $_.Name -like '*.cs' } | ForEach-Object {
|
||||
Write-Output "Deleting: $($_.Name)"
|
||||
Remove-Item $_.FullName -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ for file in "Migrations/Sqlite"/*; do
|
|||
fi
|
||||
|
||||
case "$file" in
|
||||
*_*.cs)
|
||||
*.cs)
|
||||
echo "Deleting: $(basename "$file")"
|
||||
rm -- "$file"
|
||||
;;
|
||||
|
@ -70,7 +70,7 @@ for file in "Migrations/Postgresql"/*; do
|
|||
fi
|
||||
|
||||
case "$file" in
|
||||
*_*.cs)
|
||||
*.cs)
|
||||
echo "Deleting: $(basename "$file")"
|
||||
rm -- "$file"
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue