diff --git a/I18N Commander/DataModel/cmdAddMigration.cmd b/I18N Commander/DataModel/cmdAddMigration.cmd new file mode 100644 index 0000000..7d9244e --- /dev/null +++ b/I18N Commander/DataModel/cmdAddMigration.cmd @@ -0,0 +1,4 @@ +@echo off +set /p migrationName="Please enter the new migration's name: " +dotnet tool update --global dotnet-ef +dotnet ef migrations add %migrationName% diff --git a/I18N Commander/DataModel/cmdUndoMigration.cmd b/I18N Commander/DataModel/cmdUndoMigration.cmd new file mode 100644 index 0000000..992113f --- /dev/null +++ b/I18N Commander/DataModel/cmdUndoMigration.cmd @@ -0,0 +1,4 @@ +@echo off +set /p migrationName="Please enter the migration's name which should be the **ACTIVE** one: " +dotnet tool update --global dotnet-ef +dotnet ef database update %migrationName%