From 4e0b992ba7131309b209541938c68dc80a03c66e Mon Sep 17 00:00:00 2001 From: Muhammad Umar Khan Date: Fri, 6 Oct 2023 16:30:54 +0500 Subject: [PATCH] chore: ignore django_migrations table while taking dump --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9010b8e853..3cfa9402eb 100644 --- a/Makefile +++ b/Makefile @@ -467,7 +467,7 @@ dev.dbcopyall8: ## Copy data from old mysql 5.7 containers into new mysql8 dbs $(MAKE) $(_db_copy8_targets) dev.dbcopy8.%: ## Copy data from old mysql 5.7 container into a new 8 db - docker compose exec mysql57 mysqldump "$*" > .dev/$*.sql + docker compose exec mysql57 mysqldump "$*" --ignore-table="$*".django_migrations > .dev/$*.sql docker compose exec -T mysql80 mysql "$*" < .dev/$*.sql rm .dev/$*.sql