You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
346 B
31 lines
346 B
@echo off
|
|
chcp 65001
|
|
|
|
title %2
|
|
|
|
@echo %2 migrating
|
|
|
|
cd .\migrations\%1
|
|
|
|
if '%3' equ '--run' goto run
|
|
if '%3' equ '--restore' goto restore
|
|
if '%3' equ '--ef-u' goto efu
|
|
if '%3' equ '' goto run
|
|
exit
|
|
|
|
:run
|
|
dotnet run
|
|
goto end
|
|
|
|
:restore
|
|
dotnet restore
|
|
goto end
|
|
|
|
:efu
|
|
dotnet ef databse update
|
|
goto end
|
|
|
|
:end
|
|
cd ..\..\
|
|
@echo %2 migrated
|
|
@echo --------
|
|
|