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

chore: ignore django_migrations table while taking dump #1202

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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