mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-06-16 06:10:17 +00:00
Now ensure the plpgsql language is created.
This commit is contained in:
parent
fd88f3cc0e
commit
e44888f7f8
@ -7,8 +7,16 @@ DBNAME="${1:-rscds}"
|
||||
|
||||
DBADIR="`dirname \"$0\"`"
|
||||
|
||||
# FIXME: Need to check that the database was actually created.
|
||||
createdb -E UTF8 "${DBNAME}"
|
||||
|
||||
#
|
||||
# This will fail if the language already exists.
|
||||
# FIXME: test for the language first, perhaps.
|
||||
createlang plpgsql "${DBNAME}"
|
||||
|
||||
#
|
||||
# FIXME: filter non-error output
|
||||
psql -f "${DBADIR}/rscds.sql" "${DBNAME}"
|
||||
|
||||
psql -f "${DBADIR}/caldav_functions.sql" "${DBNAME}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user