Push the sequence up for i18n_string
authorJason Etheridge <phasefx@gmail.com>
Sun, 14 May 2023 20:30:15 +0000 (16:30 -0400)
committerJason Etheridge <phasefx@gmail.com>
Sun, 14 May 2023 20:30:15 +0000 (16:30 -0400)
Reserve the first 10,000 for EG interfaces.  Later, we may want add the delete
permission back for pcrud and implement readonly ranges and flairs for
(Basic)AdminPageComponent, like we do for the standing penalties interface.

Signed-off-by: Jason Etheridge <phasefx@gmail.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/YYYY.schema.eparts.sql

index 3b3e3a6..0e8285e 100644 (file)
@@ -18964,6 +18964,7 @@ INSERT INTO config.i18n_core (fq_field, identity_value, translation, string )
           AND t.name <> (xlate->value);
 
 INSERT INTO config.i18n_string (id, context, string) VALUES (1, 'In the Place Hold interfaces for staff and patrons; when monographic parts are available, this string provides contextual information about whether and how parts are considered for holds that do not request a specific mongraphic part.', 'All Parts');
+SELECT SETVAL('config.i18n_string_id_seq', 10000); -- reserve some for stock EG interfaces
 
 INSERT INTO authority.heading_field(heading_type, heading_purpose, label, heading_xpath, component_xpath, type_xpath, thesaurus_xpath, thesaurus_override_xpath) VALUES
  ( 'topical_term', 'main',    'Main Topical Term',    '/mads21:mads/mads21:authority', '//mads21:topic', NULL, '/mads21:mads/mads21:authority/mads21:topic[1]/@authority', NULL )
index 672ef8e..583adcc 100644 (file)
@@ -15,5 +15,6 @@ CREATE TABLE config.i18n_string (
 -- 950.data.seed-values.sql
 
 INSERT INTO config.i18n_string (id, context, string) VALUES (1, 'In the Place Hold interfaces for staff and patrons; when monographic parts are available, this string provides contextual information about whether and how parts are considered for holds that do not request a specific mongraphic part.', 'All Parts');
+SELECT SETVAL('config.i18n_string_id_seq', 10000); -- reserve some for stock EG interfaces
 
 COMMIT;