makefile will now overwrite any local migration file

This commit is contained in:
James Tombleson 2023-06-25 21:05:50 -07:00
parent 3c302d2f0e
commit 54155bfc3f

View File

@ -22,7 +22,7 @@ docker-migrate: ## Runs the migrations stored in the Docker image
docker run -it --env-file .env ghcr.io/jtom38/newsbot.collector:master /app/goose --dir "/app/migrations" up docker run -it --env-file .env ghcr.io/jtom38/newsbot.collector:master /app/goose --dir "/app/migrations" up
ef-build: ## Builds migration artifact ef-build: ## Builds migration artifact
dotnet ef migrations bundle --project "Newsbot.Collector.Database" dotnet ef migrations bundle --project "Newsbot.Collector.Database" --force
ef-migrate: ## Runs migrations based on the newest artifact ef-migrate: ## Runs migrations based on the newest artifact
dotnet ef migrations bundle --project "Newsbot.Collector.Database" --force dotnet ef migrations bundle --project "Newsbot.Collector.Database" --force