From 3941e40b1b5e347bffae27abc1741c14ea287526 Mon Sep 17 00:00:00 2001 From: Jeremy Bowman Date: Mon, 30 Dec 2019 15:14:21 -0500 Subject: [PATCH] Skip date comments on all bok-choy DB dumps (#22651) In the script used to create the bok-choy database cache files, we've been passing in the parameters to omit timestamps that change for every run in some of the mysqldump commands but not all of them. Use them consistently so we can stop creating new redundant automated bok-choy DB cache PRs on almost every merge to edx-platform. --- scripts/reset-test-db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reset-test-db.sh b/scripts/reset-test-db.sh index 0130ee1f93..33b348dcbb 100755 --- a/scripts/reset-test-db.sh +++ b/scripts/reset-test-db.sh @@ -93,7 +93,7 @@ rebuild_cache_for_db() { # dump_data does not dump the django_migrations table so we do it separately. echo "Saving the django_migrations table of the $db bok_choy DB to the filesystem." - mysqldump $MYSQL_HOST -u root --no-create-info "${databases["$db"]}" django_migrations > $DB_CACHE_DIR/bok_choy_migrations_data_$db.sql + mysqldump $MYSQL_HOST -u root --no-create-info --skip-comments --skip-dump-date "${databases["$db"]}" django_migrations > $DB_CACHE_DIR/bok_choy_migrations_data_$db.sql } for db in "${database_order[@]}"; do