mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-01 18:48:17 +00:00
Remove old database update script.
This commit is contained in:
parent
6c88d46447
commit
184102374e
@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Update the RSCDS database to the latest schema version and base data
|
||||
#
|
||||
|
||||
DBNAME="${1:-rscds}"
|
||||
|
||||
DBADIR="`dirname \"$0\"`"
|
||||
|
||||
# Apply any patches.
|
||||
# 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/*.*.*.sql ; do
|
||||
psql -q -f "${PATCHFILE}" "${DBNAME}"
|
||||
done
|
||||
|
||||
# Update the base data
|
||||
psql -q -f "${DBADIR}/base-data.sql" "${DBNAME}"
|
||||
Loading…
x
Reference in New Issue
Block a user