From 736d0215a8d6207e48b8f971b8e5009185de494a Mon Sep 17 00:00:00 2001 From: nochill Date: Thu, 16 Mar 2023 14:17:18 +0700 Subject: [PATCH] accept migratedown step --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 766c817..4d6b640 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ migrateup: migrate -path db/migrations -database "${DB_TYPE}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" -verbose up migratedown: + migrate -path db/migrations -database "${DB_TYPE}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" -verbose down $N + +migratedownall: migrate -path db/migrations -database "${DB_TYPE}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" -verbose down mock-generate: