add sql to add table for codes in config schema
authorRogan Hamby <rogan.hamby@gmail.com>
Wed, 2 Nov 2016 19:24:27 +0000 (15:24 -0400)
committerRogan Hamby <rogan.hamby@gmail.com>
Wed, 2 Nov 2016 19:24:27 +0000 (15:24 -0400)
Open-ILS/src/sql/Pg/upgrade/xxxx.scheam.add_postal_codes.sql [new file with mode: 0644]

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 (file)
index 0000000..8bdfba6
--- /dev/null
@@ -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;