From 9bafe85b2bd1f0f2c8291fa243b8edbb9bbe0270 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sat, 18 Apr 2026 08:12:26 -0700 Subject: [PATCH] Add teslamate extensions to DR restore procedure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The earthdistance extension (depends on cube) must be created before restoring the teslamate database — discovered missing after 2026-04-13 DR. Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/how-to/operations/rebuild-minikube-cluster.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/how-to/operations/rebuild-minikube-cluster.md b/docs/how-to/operations/rebuild-minikube-cluster.md index 3eaffd7..ad64c89 100644 --- a/docs/how-to/operations/rebuild-minikube-cluster.md +++ b/docs/how-to/operations/rebuild-minikube-cluster.md @@ -176,6 +176,10 @@ kubectl --context=minikube-indri exec -n databases blumeops-pg-1 -c postgres -- psql -U postgres -c "CREATE DATABASE authentik OWNER authentik;" # (repeat for other DBs as needed) +# For teslamate: create extensions BEFORE restoring +kubectl --context=minikube-indri exec -n databases blumeops-pg-1 -c postgres -- \ + psql -U postgres -d teslamate -c "CREATE EXTENSION IF NOT EXISTS cube CASCADE; CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;" + # For immich: create extensions BEFORE restoring kubectl --context=minikube-indri exec -n databases immich-pg-1 -c postgres -- \ psql -U postgres -d immich -c "CREATE EXTENSION IF NOT EXISTS vector; CREATE EXTENSION IF NOT EXISTS vchord CASCADE; CREATE EXTENSION IF NOT EXISTS cube CASCADE; CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE; CREATE EXTENSION IF NOT EXISTS pg_trgm; CREATE EXTENSION IF NOT EXISTS unaccent; CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";"