Now ensure the plpgsql language is created.

This commit is contained in:
Andrew McMillan 2006-10-08 00:25:47 +13:00
parent fd88f3cc0e
commit e44888f7f8

View File

@ -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}"