Skip to content

Commit

Permalink
Add support to the sqlite export command to boostrap the DB cache tab…
Browse files Browse the repository at this point in the history
…le, to keep demos and other sqlite-powered things happy
  • Loading branch information
stevejalim committed Jan 14, 2025
1 parent fd6026c commit 9d295b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/export-db-to-sqlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ PROD_DETAILS_STORAGE=product_details.storage.PDFileStorage \

check_status_and_handle_failure "Running Django migrations"

PROD_DETAILS_STORAGE=product_details.storage.PDFileStorage \
python manage.py createcachetable || all_well=false

check_status_and_handle_failure "Creating cache table migrations"

# We want to use all the data from the JSON, so let's drop the rows
# that have been automatically populated during migrate, including all the Wagtail
# ones, except for wagtailsearch's tables because there's a virtual table that
Expand Down

0 comments on commit 9d295b2

Please sign in to comment.