Commit 35524573 by Renzo Lucioni

Merge pull request #12614 from edx/renzo/prevent-catalog-caching

Prevent dumpdata from dumping api_admin's Catalog model
parents a7d036f9 835c9cc9
...@@ -92,8 +92,8 @@ else ...@@ -92,8 +92,8 @@ else
# Dump the schema and data to the cache # Dump the schema and data to the cache
echo "Using the dumpdata command to save the $db fixture data to the filesystem." echo "Using the dumpdata command to save the $db fixture data to the filesystem."
./manage.py lms --settings bok_choy dumpdata --database $db > $DB_CACHE_DIR/bok_choy_data_$db.json ./manage.py lms --settings bok_choy dumpdata --database $db > $DB_CACHE_DIR/bok_choy_data_$db.json --exclude=api_admin.Catalog
echo "Saving the schema of the $dh bok_choy DB to the filesystem." echo "Saving the schema of the $db bok_choy DB to the filesystem."
mysqldump -u root --no-data --skip-comments --skip-dump-date "${databases[$db]}" > $DB_CACHE_DIR/bok_choy_schema_$db.sql mysqldump -u root --no-data --skip-comments --skip-dump-date "${databases[$db]}" > $DB_CACHE_DIR/bok_choy_schema_$db.sql
# dump_data does not dump the django_migrations table so we do it separately. # dump_data does not dump the django_migrations table so we do it separately.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment