From 9738fbded9af9de7033e2e076742f4a64e0038d4 Mon Sep 17 00:00:00 2001 From: Lukas Juhrich Date: Thu, 25 Jan 2024 09:34:16 +0100 Subject: [PATCH] Improve `create-view` justfile command name --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 4600d7c42..e575856f2 100644 --- a/justfile +++ b/justfile @@ -34,9 +34,10 @@ build: docker buildx bake # initializes the dev db with the instance -schema-import: _confirm-drop _schema-import (alembic "upgrade" "head") create_view +schema-import: _confirm-drop _schema-import (alembic "upgrade" "head") _create-swdd-view -create_view: +# creates the `swdd_vv` materialized view (→ `swdd.swdd_vv`) +_create-swdd-view: psql -wb postgres://postgres@127.0.0.1:55432/pycroft -c 'create materialized view swdd_vv as \ SELECT swdd_vv.persvv_id, \ swdd_vv.person_id, \