mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-02 06:14:17 +00:00
Update the database schema, rather than nuking it and starting again.
This commit is contained in:
parent
c25312c13d
commit
67999e27d9
@ -11,7 +11,7 @@ DBADIR="`dirname \"$0\"`"
|
||||
# FIXME: We shouldn't really apply patches we already have installed, although
|
||||
# it should be safe enough since any patch which is not idempotent should be
|
||||
# denied multiple application through the AWL schema management functions.
|
||||
for PATCHFILE in "${DBADIR}/patches/patch-*.sql"; do
|
||||
for PATCHFILE in "${DBADIR}/patches/*.*.*.sql"; do
|
||||
psql -q -f "${PATCHFILE}" "${DBNAME}"
|
||||
done
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user