\echo you should consult this upgrade script for the reingest actions required.
BEGIN;
+-- add the flag ingest.disable_authority_full_rec if it does not exist
+INSERT INTO config.internal_flag (name, enabled)
+SELECT 'ingest.disable_authority_full_rec', FALSE
+WHERE NOT EXISTS (SELECT 1 FROM config.internal_flag WHERE name = 'ingest.disable_authority_full_rec');
+
CREATE TEMPORARY TABLE internal_flag_state AS
SELECT name, enabled
FROM config.internal_flag
'ingest.disable_authority_full_rec'
);
--- work around fact that ingest.disable_authority_full_rec may not exist
-INSERT INTO config.internal_flag (name, enabled)
-SELECT 'ingest.disable_authority_full_rec', TRUE
-WHERE NOT EXISTS (SELECT 1 FROM config.internal_flag WHERE name = 'ingest.disable_authority_full_rec');
-
UPDATE config.internal_flag
SET enabled = TRUE
WHERE name in (
FROM internal_flag_state b
WHERE a.name = b.name;
-DELETE FROM config.internal_flag
-WHERE name = 'ingest.disable_authority_full_rec'
-AND NOT EXISTS (SELECT 1 FROM internal_flag_state WHERE name = 'ingest.disable_authority_full_rec');
-
COMMIT;