LP#1978978: Remove public flag from biblio.record_note
authorRogan Hamby <rogan.hamby@gmail.com>
Fri, 17 Jun 2022 17:29:41 +0000 (13:29 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Sat, 28 Jan 2023 19:16:03 +0000 (14:16 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/010.schema.biblio.sql
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.drop_public_flag_record_notes.sql [new file with mode: 0644]

index a4fb45b..adacfda 100644 (file)
@@ -7628,7 +7628,6 @@ SELECT  usr,
                        <field reporter:label="Last Edit Date" name="edit_date" reporter:datatype="timestamp"/>
                        <field reporter:label="Editor" name="editor" reporter:datatype="link"/>
                        <field reporter:label="Note ID" name="id" reporter:datatype="id" />
-                       <field reporter:label="Public" name="pub" reporter:datatype="bool"/>
                        <field reporter:label="Bib Record" name="record" reporter:datatype="link"/>
                        <field reporter:label="Note" name="value" reporter:datatype="text"/>
                        <field reporter:label="Deleted" name="deleted" reporter:datatype="bool"/> 
index 12731d2..350ce4c 100644 (file)
@@ -74,7 +74,6 @@ CREATE TABLE biblio.record_note (
        value           TEXT            NOT NULL,
        creator         INT             NOT NULL DEFAULT 1,
        editor          INT             NOT NULL DEFAULT 1,
-       pub             BOOL            NOT NULL DEFAULT FALSE,
        deleted         BOOL            NOT NULL DEFAULT FALSE,
        create_date     TIMESTAMP WITH TIME ZONE        NOT NULL DEFAULT now(),
        edit_date       TIMESTAMP WITH TIME ZONE        NOT NULL DEFAULT now()
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.drop_public_flag_record_notes.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.drop_public_flag_record_notes.sql
new file mode 100644 (file)
index 0000000..03a24c8
--- /dev/null
@@ -0,0 +1,7 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version);
+
+ALTER TABLE biblio.record_note DROP COLUMN pub;
+
+COMMIT;