Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
chore: ignore django_migrations table while taking dump
Browse files Browse the repository at this point in the history
  • Loading branch information
mumarkhan999 committed Oct 6, 2023
1 parent 591c664 commit 4e0b992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4e0b992

Please sign in to comment.