Skip to content

Commit

Permalink
Improve create-view justfile command name
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Jan 25, 2024
1 parent f3d9d6d commit 9738fbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down

0 comments on commit 9738fbd

Please sign in to comment.