mirror of
https://github.com/yoncodes/BD2PS.git
synced 2026-08-06 06:32:13 +02:00
pushing
This commit is contained in:
15
database/migrations/rename.bat
Normal file
15
database/migrations/rename.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
set counter=1
|
||||
|
||||
for %%f in (*.sql) do (
|
||||
set "filename=%%f"
|
||||
set "padded=000!counter!"
|
||||
set "padded=!padded:~-3!"
|
||||
ren "%%f" "!padded!_%%f"
|
||||
set /a counter+=1
|
||||
)
|
||||
|
||||
echo Done! Renamed all SQL files with numeric prefixes.
|
||||
pause
|
||||
Reference in New Issue
Block a user