Skip to content

Commit

Permalink
Exclude django_admin_log table from sqlite export to avoid integrity …
Browse files Browse the repository at this point in the history
…failure because we don't export the Users (#15205)
  • Loading branch information
stevejalim authored Sep 23, 2024
1 parent 2c93e97 commit 5621b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/export-db-to-sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ check_status_and_handle_failure "Dumping wagtailcore.Locale"
# wagtailcore.CommentReply # Excluded: may contain sensitive info
# wagtailcore.PageSubscription # Excluded: dependent on User model
# django_rq.Queue # Excluded: irrelevant to local use and not a real DB table: data lives in Redis
# django.contrib.admin.LogEntry # Excluded: dependent on User model

# Deliberate TEMPORARY INCLUSIONS (because without them we cannot load the data) - tables are
# cleaned at the end, which is why they are in the tables_to_wipe_after_import variable, defined earlier.
Expand Down Expand Up @@ -173,7 +174,6 @@ python manage.py dumpdata \
sitemaps.SitemapURL \
pocketfeed.PocketArticle \
careers.Position \
admin.LogEntry \
--indent 2 \
--output /tmp/export_remainder.json || all_well=false

Expand Down

0 comments on commit 5621b01

Please sign in to comment.