From: Chris Sharp Date: Wed, 13 Oct 2021 19:47:31 +0000 (-0400) Subject: update create_database to latest X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=50a5a92a42861288e4b6cdf2e613c5ca6515a23e;p=contrib%2Fpines%2Fgenasys.git update create_database to latest --- diff --git a/templates/db/create_database_3.4.1.sql b/templates/db/create_database_3.4.1.sql deleted file mode 100644 index 1dae066..0000000 --- a/templates/db/create_database_3.4.1.sql +++ /dev/null @@ -1,24 +0,0 @@ --- 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 :db_name; - -CREATE DATABASE :db_name TEMPLATE template0 ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C'; - -\connect :db_name - -CREATE LANGUAGE plperlu; - -CREATE EXTENSION xml2; -CREATE EXTENSION hstore; -CREATE EXTENSION intarray; -CREATE EXTENSION pgcrypto; -CREATE EXTENSION unaccent; - diff --git a/templates/db/create_database_3.6.1.sql b/templates/db/create_database_3.6.1.sql new file mode 100644 index 0000000..1dae066 --- /dev/null +++ b/templates/db/create_database_3.6.1.sql @@ -0,0 +1,24 @@ +-- 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 :db_name; + +CREATE DATABASE :db_name TEMPLATE template0 ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C'; + +\connect :db_name + +CREATE LANGUAGE plperlu; + +CREATE EXTENSION xml2; +CREATE EXTENSION hstore; +CREATE EXTENSION intarray; +CREATE EXTENSION pgcrypto; +CREATE EXTENSION unaccent; +