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 ('0701', :eg_version); -- sprater/bshum/tsbere
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0702', :eg_version); -- berick/miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0702', :eg_version);
+
+INSERT INTO config.global_flag (name, enabled, label)
+ VALUES (
+ 'opac.org_unit.non_inheritied_visibility',
+ FALSE,
+ oils_i18n_gettext(
+ 'opac.org_unit.non_inheritied_visibility',
+ 'Org Units Do Not Inherit Visibility',
+ 'cgf',
+ 'label'
+ )
+ );
+
+ALTER TABLE actor.org_unit ADD COLUMN
+ sibling_order INTEGER NOT NULL DEFAULT 0;
+
+ALTER TABLE auditor.actor_org_unit_history ADD COLUMN
+ sibling_order INTEGER NOT NULL DEFAULT 0;
+
+COMMIT;
+
+/* UNDO
+BEGIN;
+DELETE FROM config.global_flag WHERE name = 'opac.org_unit.non_inheritied_visibility';
+ALTER TABLE actor.org_unit DROP COLUMN sibling_order;
+ALTER TABLE auditor.actor_org_unit_history DROP COLUMN sibling_order;
+COMMIT;
+*/
+
+++ /dev/null
-BEGIN;
-
---SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.global_flag (name, enabled, label)
- VALUES (
- 'opac.org_unit.non_inheritied_visibility',
- FALSE,
- oils_i18n_gettext(
- 'opac.org_unit.non_inheritied_visibility',
- 'Org Units Do Not Inherit Visibility',
- 'cgf',
- 'label'
- )
- );
-
-ALTER TABLE actor.org_unit ADD COLUMN
- sibling_order INTEGER NOT NULL DEFAULT 0;
-
-ALTER TABLE auditor.actor_org_unit_history ADD COLUMN
- sibling_order INTEGER NOT NULL DEFAULT 0;
-
-COMMIT;
-
-/* UNDO
-BEGIN;
-DELETE FROM config.global_flag WHERE name = 'opac.org_unit.non_inheritied_visibility';
-ALTER TABLE actor.org_unit DROP COLUMN sibling_order;
-ALTER TABLE auditor.actor_org_unit_history DROP COLUMN sibling_order;
-COMMIT;
-*/
-