From da5b5464f2b180f61c6e4837cf3422a9c2656c38 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Fri, 23 Jun 2017 07:59:04 +0200
Subject: [PATCH] [SIGNED-OFF] Bug 18811: Atomic update to print warning at
 upgrade time

The warning encourages people to run the auth_show_hidden_data script
to check for data in hidden fields and adjust their frameworks.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
---
 installer/data/mysql/atomicupdate/bug_18811.perl | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 installer/data/mysql/atomicupdate/bug_18811.perl

diff --git a/installer/data/mysql/atomicupdate/bug_18811.perl b/installer/data/mysql/atomicupdate/bug_18811.perl
new file mode 100644
index 0000000..09dedfa
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_18811.perl
@@ -0,0 +1,9 @@
+$DBversion = 'XXX';  # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+
+    print q{WARNING: Bug 18811 fixed an inconsistency in the visibility settings for authority frameworks. It is recommended that you run script misc/maintenance/auth_show_hidden_data.pl to check if you have data in hidden fields and adjust your frameworks accordingly to prevent data loss when editing such records.};
+    print "\n";
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 18811 - Visibility settings inconsistent between framework and authority editor)\n";
+}
-- 
2.1.4