From: Rogan Hamby Date: Wed, 2 Nov 2016 19:24:27 +0000 (-0400) Subject: add sql to add table for codes in config schema X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=48f4b48e72abb57b415d7b93ee3ed3511158b9c6;p=working%2FEvergreen.git add sql to add table for codes in config schema --- diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.scheam.add_postal_codes.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.scheam.add_postal_codes.sql new file mode 100644 index 0000000000..8bdfba60f6 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/xxxx.scheam.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;