From 9d295b299b99f4c8c9b60f06d63852f646c7e6df Mon Sep 17 00:00:00 2001 From: Steve Jalim Date: Tue, 14 Jan 2025 14:55:34 +0000 Subject: [PATCH] Add support to the sqlite export command to boostrap the DB cache table, to keep demos and other sqlite-powered things happy --- bin/export-db-to-sqlite.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/export-db-to-sqlite.sh b/bin/export-db-to-sqlite.sh index a29a1288960..7468087744c 100755 --- a/bin/export-db-to-sqlite.sh +++ b/bin/export-db-to-sqlite.sh @@ -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