[open-ils-commits] r20052 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 12 13:29:29 EDT 2011
Author: miker
Date: 2011-04-12 13:29:26 -0400 (Tue, 12 Apr 2011)
New Revision: 20052
Modified:
trunk/Open-ILS/src/sql/Pg/000.functions.general.sql
trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql
trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql
trunk/Open-ILS/src/sql/Pg/210.schema.serials.sql
Log:
Final cleanup for the base schema, re search_path ... I hope
Modified: trunk/Open-ILS/src/sql/Pg/000.functions.general.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/000.functions.general.sql 2011-04-12 17:29:09 UTC (rev 20051)
+++ trunk/Open-ILS/src/sql/Pg/000.functions.general.sql 2011-04-12 17:29:26 UTC (rev 20052)
@@ -24,6 +24,6 @@
END;
$$ LANGUAGE plpgsql;
-SELECT evergreen.change_db_setting('search_path', ARRAY['public','pg_catalog']);
+SELECT evergreen.change_db_setting('search_path', ARRAY['evergreen','public','pg_catalog']);
COMMIT;
Modified: trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql 2011-04-12 17:29:09 UTC (rev 20051)
+++ trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql 2011-04-12 17:29:26 UTC (rev 20052)
@@ -62,7 +62,7 @@
CREATE INDEX biblio_record_entry_fp_idx ON biblio.record_entry ( fingerprint );
CREATE UNIQUE INDEX biblio_record_unique_tcn ON biblio.record_entry (tcn_value) WHERE deleted = FALSE OR deleted IS FALSE;
CREATE TRIGGER a_marcxml_is_well_formed BEFORE INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE biblio.check_marcxml_well_formed();
-CREATE TRIGGER b_maintain_901 BEFORE INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE maintain_901();
+CREATE TRIGGER b_maintain_901 BEFORE INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE evergreen.maintain_901();
CREATE TRIGGER c_maintain_control_numbers BEFORE INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE maintain_control_numbers();
CREATE TABLE biblio.record_note (
Modified: trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql 2011-04-12 17:29:09 UTC (rev 20051)
+++ trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql 2011-04-12 17:29:26 UTC (rev 20052)
@@ -38,7 +38,7 @@
CREATE INDEX authority_record_entry_creator_idx ON authority.record_entry ( creator );
CREATE INDEX authority_record_entry_editor_idx ON authority.record_entry ( editor );
CREATE TRIGGER a_marcxml_is_well_formed BEFORE INSERT OR UPDATE ON authority.record_entry FOR EACH ROW EXECUTE PROCEDURE biblio.check_marcxml_well_formed();
-CREATE TRIGGER b_maintain_901 BEFORE INSERT OR UPDATE ON authority.record_entry FOR EACH ROW EXECUTE PROCEDURE maintain_901();
+CREATE TRIGGER b_maintain_901 BEFORE INSERT OR UPDATE ON authority.record_entry FOR EACH ROW EXECUTE PROCEDURE evergreen.maintain_901();
CREATE TRIGGER c_maintain_control_numbers BEFORE INSERT OR UPDATE ON authority.record_entry FOR EACH ROW EXECUTE PROCEDURE maintain_control_numbers();
CREATE RULE protect_authority_rec_delete AS ON DELETE TO authority.record_entry DO INSTEAD (UPDATE authority.record_entry SET deleted = TRUE WHERE OLD.id = authority.record_entry.id);
Modified: trunk/Open-ILS/src/sql/Pg/210.schema.serials.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/210.schema.serials.sql 2011-04-12 17:29:09 UTC (rev 20051)
+++ trunk/Open-ILS/src/sql/Pg/210.schema.serials.sql 2011-04-12 17:29:26 UTC (rev 20052)
@@ -23,7 +23,7 @@
CREATE INDEX serial_record_entry_creator_idx ON serial.record_entry ( creator );
CREATE INDEX serial_record_entry_editor_idx ON serial.record_entry ( editor );
CREATE INDEX serial_record_entry_owning_lib_idx ON serial.record_entry ( owning_lib, deleted );
-CREATE TRIGGER b_maintain_901 BEFORE INSERT OR UPDATE ON serial.record_entry FOR EACH ROW EXECUTE PROCEDURE maintain_901();
+CREATE TRIGGER b_maintain_901 BEFORE INSERT OR UPDATE ON serial.record_entry FOR EACH ROW EXECUTE PROCEDURE evergreen.maintain_901();
CREATE TRIGGER c_maintain_control_numbers BEFORE INSERT OR UPDATE ON serial.record_entry FOR EACH ROW EXECUTE PROCEDURE maintain_control_numbers();
CREATE RULE protect_mfhd_delete AS ON DELETE TO serial.record_entry DO INSTEAD UPDATE serial.record_entry SET deleted = true WHERE old.id = serial.record_entry.id;
More information about the open-ils-commits
mailing list