From 89336863e78749cd6dc26038dab280b2f4301180 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 31 May 2007 21:57:16 +0000 Subject: [PATCH] Remove comment on standard schema --- html/admin/sql/account_repository/make-sql | 2 +- html/admin/sql/account_repository/schema.sql | 2 +- html/admin/sql/dossier1/make-sql | 2 +- html/admin/sql/dossier1/schema.sql | 2 +- html/admin/sql/mod1/make-sql | 2 +- html/admin/sql/mod1/schema.sql | 1 - html/admin/sql/mod2/make-sql | 3 ++- html/admin/sql/mod2/schema.sql | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/html/admin/sql/account_repository/make-sql b/html/admin/sql/account_repository/make-sql index eeea6ef79..ef1d6eb2a 100755 --- a/html/admin/sql/account_repository/make-sql +++ b/html/admin/sql/account_repository/make-sql @@ -1,4 +1,4 @@ -pg_dump -O -U phpcompta -s account_repository | awk '!/--/ {if ( ! /^$/) print $0;}' > schema.sql +pg_dump -O -U phpcompta -s account_repository | awk '!/--/ {if ( ! /^$/) print $0;}'|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" > schema.sql awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql awk '/CREATE DOMAIN/,/;/ { print $0;}' < schema.sql > table.sql awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql >> table.sql diff --git a/html/admin/sql/account_repository/schema.sql b/html/admin/sql/account_repository/schema.sql index 33fe0ef5c..14f309fa3 100644 --- a/html/admin/sql/account_repository/schema.sql +++ b/html/admin/sql/account_repository/schema.sql @@ -1,7 +1,7 @@ SET client_encoding = 'LATIN1'; SET check_function_bodies = false; SET client_min_messages = warning; -COMMENT ON SCHEMA public IS 'Standard public schema'; + SET search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = false; diff --git a/html/admin/sql/dossier1/make-sql b/html/admin/sql/dossier1/make-sql index 045ac351a..30d1687cf 100755 --- a/html/admin/sql/dossier1/make-sql +++ b/html/admin/sql/dossier1/make-sql @@ -1,4 +1,4 @@ -pg_dump -O -U phpcompta -s dossier1 | awk '!/--/ {if ( ! /^$/) print $0;}' > schema.sql +pg_dump -O -U phpcompta -s dossier1 | awk '!/--/ {if ( ! /^$/) print $0;}'|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" > schema.sql awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql awk '/CREATE DOMAIN/,/;/ { print $0;}' < schema.sql > table.sql awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql >> table.sql diff --git a/html/admin/sql/dossier1/schema.sql b/html/admin/sql/dossier1/schema.sql index 1f63b07aa..315233f47 100644 --- a/html/admin/sql/dossier1/schema.sql +++ b/html/admin/sql/dossier1/schema.sql @@ -1,7 +1,7 @@ SET client_encoding = 'LATIN1'; SET check_function_bodies = false; SET client_min_messages = warning; -COMMENT ON SCHEMA public IS 'Standard public schema'; + SET search_path = public, pg_catalog; CREATE DOMAIN poste_comptable AS numeric(25,0); CREATE FUNCTION account_add(p_id poste_comptable, p_name character varying) RETURNS void diff --git a/html/admin/sql/mod1/make-sql b/html/admin/sql/mod1/make-sql index 66a5e3650..195366ef8 100755 --- a/html/admin/sql/mod1/make-sql +++ b/html/admin/sql/mod1/make-sql @@ -1,4 +1,4 @@ -pg_dump -O -U phpcompta -s mod1 > schema.sql +pg_dump -O -U phpcompta -s mod1|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" > schema.sql awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql awk '/CREATE DOMAIN/,/;/ { print $0;}' < schema.sql > table.sql awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql >> table.sql diff --git a/html/admin/sql/mod1/schema.sql b/html/admin/sql/mod1/schema.sql index 27f5a8511..a03f9e52a 100644 --- a/html/admin/sql/mod1/schema.sql +++ b/html/admin/sql/mod1/schema.sql @@ -10,7 +10,6 @@ SET client_min_messages = warning; -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres -- -COMMENT ON SCHEMA public IS 'Standard public schema'; -- diff --git a/html/admin/sql/mod2/make-sql b/html/admin/sql/mod2/make-sql index 35b4ca11e..e7098df05 100755 --- a/html/admin/sql/mod2/make-sql +++ b/html/admin/sql/mod2/make-sql @@ -1,4 +1,5 @@ -pg_dump -O -U phpcompta -s mod2 | awk '!/--/ {if ( ! /^$/) print $0;}' > schema.sql +pg_dump -O -U phpcompta -s mod2 | awk '!/--/ {if ( ! /^$/) print +$0;}'|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" > schema.sql awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql awk '/CREATE DOMAIN/,/;/ { print $0;}' < schema.sql > table.sql awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql >> table.sql diff --git a/html/admin/sql/mod2/schema.sql b/html/admin/sql/mod2/schema.sql index 5f1fd2206..e8671980a 100644 --- a/html/admin/sql/mod2/schema.sql +++ b/html/admin/sql/mod2/schema.sql @@ -1,7 +1,7 @@ SET client_encoding = 'LATIN1'; SET check_function_bodies = false; SET client_min_messages = warning; -COMMENT ON SCHEMA public IS 'Standard public schema'; + SET search_path = public, pg_catalog; CREATE DOMAIN poste_comptable AS numeric(25,0); CREATE FUNCTION account_add(p_id poste_comptable, p_name character varying) RETURNS void