From: Galen Charlton Date: Mon, 20 Sep 2021 21:24:29 +0000 (-0400) Subject: LP#1929242: stamp DB update X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a81071f075bb2210d185806c9a5923fc787127bd;p=evergreen%2Ftadl.git LP#1929242: stamp DB update Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 376fc4f012..6c0be7059d 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1288', :eg_version); -- phasefx / csharp +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1289', :eg_version); -- rhamby / rfrasur / gmcharlt CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1289.data.record_notes.sql b/Open-ILS/src/sql/Pg/upgrade/1289.data.record_notes.sql new file mode 100644 index 0000000000..1d57e1d2b6 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1289.data.record_notes.sql @@ -0,0 +1,26 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('1289', :eg_version); + + +ALTER TABLE biblio.record_note ADD COLUMN deleted BOOLEAN DEFAULT FALSE; + +INSERT INTO permission.perm_list ( id, code, description ) VALUES +( 633, 'CREATE_RECORD_NOTE', oils_i18n_gettext(633, + 'Allow the user to create a record note', 'ppl', 'description')), +( 634, 'UPDATE_RECORD_NOTE', oils_i18n_gettext(634, + 'Allow the user to update a record note', 'ppl', 'description')), +( 635, 'DELETE_RECORD_NOTE', oils_i18n_gettext(635, + 'Allow the user to delete a record note', 'ppl', 'description')); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.grid.catalog.record.notes', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.catalog.record.notes', + 'Grid Config: eg.grid.catalog.record.notes', + 'cwst', 'label' + ) +); + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.record_notes.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.data.record_notes.sql deleted file mode 100644 index 7b52182018..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/xxxx.data.record_notes.sql +++ /dev/null @@ -1,26 +0,0 @@ -BEGIN; - -SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version); - - -ALTER TABLE biblio.record_note ADD COLUMN deleted BOOLEAN DEFAULT FALSE; - -INSERT INTO permission.perm_list ( id, code, description ) VALUES -( 633, 'CREATE_RECORD_NOTE', oils_i18n_gettext(633, - 'Allow the user to create a record note', 'ppl', 'description')), -( 634, 'UPDATE_RECORD_NOTE', oils_i18n_gettext(634, - 'Allow the user to update a record note', 'ppl', 'description')), -( 635, 'DELETE_RECORD_NOTE', oils_i18n_gettext(635, - 'Allow the user to delete a record note', 'ppl', 'description')); - -INSERT INTO config.workstation_setting_type (name, grp, datatype, label) -VALUES ( - 'eg.grid.catalog.record.notes', 'gui', 'object', - oils_i18n_gettext( - 'eg.grid.catalog.record.notes', - 'Grid Config: eg.grid.catalog.record.notes', - 'cwst', 'label' - ) -); - -COMMIT;