Adding a copy of create_database_extensions.sql to re-create the PINES database durin...
authorChris Sharp <csharp@georgialibraries.org>
Mon, 13 Jan 2014 12:59:35 +0000 (07:59 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 20 Oct 2014 12:46:36 +0000 (08:46 -0400)
Open-ILS/src/sql/Pg/version-upgrade/pines-create-database.sql [new file with mode: 0644]

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 (file)
index 0000000..c4905c7
--- /dev/null
@@ -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;