From: Chris Sharp Date: Mon, 13 Jan 2014 12:59:35 +0000 (-0500) Subject: Adding a copy of create_database_extensions.sql to re-create the PINES database durin... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0424f386751d3f2b0193cc29062f5ee047abe5da;p=evergreen%2Fpines.git Adding a copy of create_database_extensions.sql to re-create the PINES database during the upgrade. --- diff --git a/Open-ILS/src/sql/Pg/version-upgrade/pines-create-database.sql b/Open-ILS/src/sql/Pg/version-upgrade/pines-create-database.sql new file mode 100644 index 0000000000..c4905c7b05 --- /dev/null +++ b/Open-ILS/src/sql/Pg/version-upgrade/pines-create-database.sql @@ -0,0 +1,22 @@ +-- This file is intended to be called by eg_db_config.pl + +-- If manually calling: +-- Connect to the postgres database initially +-- Specify the database to create as -vdb_name=DATABASE +-- Specify the postgres contrib directory as -vcontrib_dir=CONTRIBDIR +-- You can get the contrib directory using pg_config --sharedir and adding a /contrib to it + +-- NOTE: This file does not do transactions +-- This is intentional. Please do not wrap in BEGIN/COMMIT. +DROP DATABASE IF EXISTS evergreen; + +CREATE DATABASE evergreen TEMPLATE template0 ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C'; + +\connect evergreen + +CREATE LANGUAGE plperlu; +CREATE LANGUAGE plperl; + +CREATE EXTENSION tablefunc; +CREATE EXTENSION xml2; +CREATE EXTENSION hstore;