Skip to content

Commit

Permalink
create matview only if does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Mar 10, 2024
1 parent f07a07c commit 90dea1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ schema-import: _confirm-drop _schema-import (alembic "upgrade" "head") _create-s

# 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 \
psql -wb postgres://postgres@127.0.0.1:55432/pycroft -c 'create materialized view if not exists swdd_vv as \
SELECT swdd_vv.persvv_id, \
swdd_vv.person_id, \
swdd_vv.vo_suchname, \
Expand Down

0 comments on commit 90dea1e

Please sign in to comment.