From: Rogan Hamby Date: Mon, 25 Apr 2016 19:34:09 +0000 (-0400) Subject: initial work on updating field mapper, removing the loading of zips file from opensrf... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c34878987f58b9e61736f5886fe0bd6b20dbadd6;p=working%2FEvergreen.git initial work on updating field mapper, removing the loading of zips file from opensrf.xml and the files to create the table Signed-off-by: Rogan Hamby --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index a51113f262..da07b08d9f 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -746,6 +746,25 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/examples/opensrf.xml.example b/Open-ILS/examples/opensrf.xml.example index 87db4cc49a..888df66ff5 100644 --- a/Open-ILS/examples/opensrf.xml.example +++ b/Open-ILS/examples/opensrf.xml.example @@ -634,8 +634,6 @@ vim:et:ts=4:sw=4: 10 - - diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 344c31658b..015caa5830 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -1201,4 +1201,18 @@ ALTER TABLE config.marc_subfield ) ); +CREATE TABLE config.postal_codes ( + id SERIAL PRIMARY KEY, + state TEXT, + city TEXT, + postal_code TEXT NOT NULL, + enabled BOOLEAN NOT NULL DEFAULT TRUE, + county TEXT, + alert_message TEXT +); + +COMMENT ON TABLE config.postal_codes IS $$ +This table stores the postal codes for use with the patron editor that used to live in an external text file. +$$; + COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_postal_codes.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_postal_codes.sql new file mode 100644 index 0000000000..44b5f7b983 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_postal_codes.sql @@ -0,0 +1,17 @@ +BEGIN; + +CREATE TABLE config.postal_codes ( + id SERIAL PRIMARY KEY, + state TEXT, + city TEXT, + postal_code TEXT NOT NULL, + enabled BOOLEAN NOT NULL DEFAULT TRUE, + county TEXT, + alert_message TEXT +); + +COMMENT ON TABLE config.postal_codes IS $$ +This table stores the postal codes for use with the patron editor that used to live in an external text file. +$$; + +COMMIT;