Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude django_admin_log table from sqlite export to avoid integrity … #15205

Merged
merged 1 commit into from
Sep 23, 2024
Merged
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 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