add note field
authorJane Sandberg <sandbej@linnbenton.edu>
Wed, 12 Dec 2018 05:23:38 +0000 (21:23 -0800)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 23 Jan 2019 23:08:13 +0000 (15:08 -0800)
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/095.schema.booking.sql
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_note_bresv.sql [new file with mode: 0644]

index 1be2c88..c3b5668 100644 (file)
@@ -5105,6 +5105,7 @@ SELECT  usr,
                        <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="link"/>
                        <field reporter:label="Capture Staff" name="capture_staff" reporter:datatype="link"/>
                        <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
+                       <field reporter:label="Note" name="note" reporter:datatype="text"/>
                        <field reporter:label="Attribute Value Maps" name="attr_val_maps" oils_persist:virtual="true" reporter:datatype="link"/>
                </fields>
                <links>
index 974f3b9..7144fde 100644 (file)
@@ -129,7 +129,8 @@ CREATE TABLE booking.reservation (
                                        DEFERRABLE INITIALLY DEFERRED,
        capture_staff    INT            REFERENCES actor.usr(id)
                                        DEFERRABLE INITIALLY DEFERRED,
-       email_notify     BOOLEAN        NOT NULL DEFAULT FALSE
+       email_notify     BOOLEAN        NOT NULL DEFAULT FALSE,
+       note             TEXT
 ) INHERITS (money.billable_xact);
 
 ALTER TABLE booking.reservation ADD PRIMARY KEY (id);
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_note_bresv.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.add_note_bresv.sql
new file mode 100644 (file)
index 0000000..8484077
--- /dev/null
@@ -0,0 +1,6 @@
+BEGIN;
+
+ALTER TABLE booking.reservation 
+    ADD COLUMN note TEXT;
+
+COMMIT;