Skip to content

Commit

Permalink
For now, stop excluding draft wagtailcore_page rows from the DB export (
Browse files Browse the repository at this point in the history
#15389)

Until we can find a way to exclude both the wagtailcore_page _and_ the
related custom model that references this, the exclusion behaviour
creates a DB with a state that fails integrity checks, because
the custom model references a wagtailcore_page table row which no longer
exists
  • Loading branch information
stevejalim authored Oct 25, 2024
1 parent 2dba421 commit f714497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/export-db-to-sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ do
done

# Delete Wagtail Page records that are not marked as Live
sqlite3 $output_db "DELETE FROM wagtailcore_page WHERE live=0;"
echo "Purged Page records that are not marked as live any more"
# sqlite3 $output_db "DELETE FROM wagtailcore_page WHERE live=0;"
# echo "Purged Page records that are not marked as live any more"

# And to be sure that there are no relations pointing back to non-existent rows
echo "Preparing statements for nullifying columns in temporary sql file. (Output is hidden because it's captured from stdout)."
Expand Down

0 comments on commit f714497

Please sign in to comment.