From ae8b0266e5f60ee7343d4eda81ff1553ebd5d6c6 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 19 Jun 2023 15:38:55 -0700 Subject: [PATCH] added command to generate migration bundle to makefile --- .gitignore | 2 ++ makefile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 845d631..0394bff 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore seed.secrects.json +efbundle +efbundle.exe out/ #Docker Compose Secrets diff --git a/makefile b/makefile index faab6d1..2341cb6 100644 --- a/makefile +++ b/makefile @@ -29,3 +29,6 @@ migrate-dev-down: ## revert sql migrations to dev db migrate-refresh: ## Rolls back all migrations goose -dir "./Newsbot.Collector.Database/Migrations" postgres "host=localhost user=postgres password=postgres dbname=postgres sslmode=disable" reset + +ef-bundle: ## Create a migration bundle + dotnet ef migrations bundle --project Newsbot.Collector.Database \ No newline at end of file