Bug 22844: DBRev 20.06.00.007
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 14:05:38 +0000 (16:05 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jul 2020 14:16:32 +0000 (16:16 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha.pm
installer/data/mysql/atomicupdate/bug_22844.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 59bf9c7..4fbd35d 100644 (file)
--- a/Koha.pm
+++ b/Koha.pm
@@ -29,7 +29,7 @@ use vars qw{ $VERSION };
 # - #4 : the developer version. The 4th number is the database subversion.
 #        used by developers when the database changes. updatedatabase take care of the changes itself
 #        and is automatically called by Auth.pm when needed.
-$VERSION = "20.06.00.006";
+$VERSION = "20.06.00.007";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_22844.perl b/installer/data/mysql/atomicupdate/bug_22844.perl
deleted file mode 100644 (file)
index 4b1d12f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-
-    if( !column_exists( 'borrower_attribute_types', 'mandatory' ) ) {
-        $dbh->do(q|
-            ALTER TABLE borrower_attribute_types
-            ADD COLUMN mandatory TINYINT(1) NOT NULL DEFAULT 0
-            AFTER keep_for_pseudonymization
-        |);
-    }
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug XXXXX - Add borrower_attribute_types.mandatory)\n";
-}
index 418ec08..dde53c9 100755 (executable)
@@ -22316,6 +22316,19 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 24151, "Add pseudonymized_transactions tables and sysprefs for Pseudonymization" );
 }
 
+$DBversion = '20.06.00.007';
+if( CheckVersion( $DBversion ) ) {
+    if( !column_exists( 'borrower_attribute_types', 'mandatory' ) ) {
+        $dbh->do(q|
+            ALTER TABLE borrower_attribute_types
+            ADD COLUMN mandatory TINYINT(1) NOT NULL DEFAULT 0
+            AFTER keep_for_pseudonymization
+        |);
+    }
+
+    NewVersion( $DBversion, 22844, "Add borrower_attribute_types.mandatory" );
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.
 my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';