From 96c34e2947d5544e8311a713b22b9d70b8693ffb Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 12 Jun 2022 17:14:21 +0200 Subject: [PATCH] Added migration commands --- I18N Commander/DataModel/cmdAddMigration.cmd | 4 ++++ I18N Commander/DataModel/cmdUndoMigration.cmd | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 I18N Commander/DataModel/cmdAddMigration.cmd create mode 100644 I18N Commander/DataModel/cmdUndoMigration.cmd 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%