Bug 17702: DBRev 19.12.00.029
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 20 Feb 2020 14:51:02 +0000 (14:51 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 20 Feb 2020 14:51:24 +0000 (14:51 +0000)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha.pm
Koha/Schema/Result/AccountCreditType.pm
installer/data/mysql/atomicupdate/bug-17702.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 077e045..3515c62 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 = "19.12.00.028";
+$VERSION = "19.12.00.029";
 
 sub version {
     return $VERSION;
index c81d27f..4ee8e86 100644 (file)
@@ -47,6 +47,12 @@ __PACKAGE__->table("account_credit_types");
   default_value: 0
   is_nullable: 0
 
+=head2 archived
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 0
+
 =cut
 
 __PACKAGE__->add_columns(
@@ -58,6 +64,8 @@ __PACKAGE__->add_columns(
   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
   "is_system",
   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
+  "archived",
+  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
 );
 
 =head1 PRIMARY KEY
@@ -105,8 +113,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-14 09:59:52
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uycu/23b681kWHNX+/gNiw
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-20 14:48:55
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hdxcXxCqIDxwfSHjSr0VUg
 
 __PACKAGE__->add_columns(
     '+is_system' => { is_boolean => 1 }
diff --git a/installer/data/mysql/atomicupdate/bug-17702.perl b/installer/data/mysql/atomicupdate/bug-17702.perl
deleted file mode 100644 (file)
index ab51cf0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-$DBversion = 'XXX';
-if( CheckVersion( $DBversion ) ) {
-    if (!column_exists('account_credit_types', 'archived')) {
-        $dbh->do('ALTER TABLE account_credit_types ADD COLUMN archived tinyint(1) NOT NULL DEFAULT 0 AFTER is_system');
-    }
-
-    SetVersion( $DBversion );
-    print "Upgrade to $DBversion done (Bug 17702 - Add column account_credit_types.archived)\n";
-}
index 5144160..439eae5 100755 (executable)
@@ -20915,6 +20915,16 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 14567: Add OpacBrowseSearch syspref)\n";
 }
 
+$DBversion = '19.12.00.029';
+if( CheckVersion( $DBversion ) ) {
+    if (!column_exists('account_credit_types', 'archived')) {
+        $dbh->do('ALTER TABLE account_credit_types ADD COLUMN archived tinyint(1) NOT NULL DEFAULT 0 AFTER is_system');
+    }
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 17702 - Add column account_credit_types.archived)\n";
+}
+
 # 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/';