# - #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 = "16.06.00.045";
+$VERSION = "16.06.00.046";
sub version {
return $VERSION;
default_value: 0
is_nullable: 1
+=head2 no_auto_renewal_after
+
+ data_type: 'integer'
+ is_nullable: 1
+
=head2 reservesallowed
data_type: 'smallint'
{ data_type => "integer", is_nullable => 1 },
"auto_renew",
{ data_type => "tinyint", default_value => 0, is_nullable => 1 },
+ "no_auto_renewal_after",
+ { data_type => "integer", is_nullable => 1 },
"reservesallowed",
{ data_type => "smallint", default_value => 0, is_nullable => 0 },
"holds_per_record",
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-24 13:56:21
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eUHth1uaatT2fzY2bihv3g
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-11-02 10:33:37
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:t9AhZLbm4SE7mx25LAyhGA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
SetVersion($DBversion);
}
+$DBversion = '16.06.00.046';
+if ( CheckVersion($DBversion) ) {
+ $dbh->do(q{
+ ALTER TABLE issuingrules ADD COLUMN no_auto_renewal_after INT(4) DEFAULT NULL AFTER auto_renew;
+ });
+
+ print "Upgrade to $DBversion done (Bug 15581 - Add a circ rule to not allow auto-renewals after defined loan period)\n";
+ SetVersion($DBversion);
+}
+
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.