</permacrud>
</class>
+
+<class id="cpc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::postal_codes" oils_persist:tablename="config.postal_codes" reporter:label="Postal Codes" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.postal_codes_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="City" name="city" reporter:datatype="text"/>
+ <field reporter:label="Postal Code" name="postal_code" reporter:datatype="text"/>
+ <field reporter:label="Enabled" name="enabled" reporter:datatype="boolean"/>
+ <field reporter:label="County" name="county" reporter:datatype="text"/>
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+</class>
+
<class id="cin" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::index_normalizer" oils_persist:tablename="config.index_normalizer" reporter:label="Indexing Normalizer" oils_persist:field_safe="true">
<fields oils_persist:primary="id">
<field reporter:label="ID" name="id" reporter:datatype="id"/>
<!-- How many superpages to consider for searching overall. -->
<max_superpages>10</max_superpages>
- <!-- zip code database file -->
- <!--<zips_file>LOCALSTATEDIR/data/zips.txt</zips_file>-->
</app_settings>
</open-ils.search>
)
);
+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;
--- /dev/null
+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;