Bug 32357: Set borrower_message_preferences.days_in_advance default to NULL
To test: 1. prove t/db_dependent/cronjobs/advance_notices_digest.t 2. prove t/db_dependent/Letters/TemplateToolkit.t 3. prove t/db_dependent/Koha/CurbsidePickups.t 4. prove t/db_dependent/Koha/Patrons.t 5. prove t/db_dependent/Patron/Messaging.t Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
6a84d74102
commit
6871dc7b35
2 changed files with 15 additions and 1 deletions
14
installer/data/mysql/atomicupdate/bug_32357.pl
Normal file
14
installer/data/mysql/atomicupdate/bug_32357.pl
Normal file
|
@ -0,0 +1,14 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => "32357",
|
||||
description => "Set borrower_message_preferences.days_in_advance default to NULL",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
$dbh->do(q{
|
||||
ALTER TABLE borrower_message_preferences ALTER days_in_advance SET DEFAULT NULL;
|
||||
});
|
||||
say $out "Updated column 'borrower_message_preferences.days_in_advance default' to NULL";
|
||||
},
|
||||
};
|
|
@ -1276,7 +1276,7 @@ CREATE TABLE `borrower_message_preferences` (
|
|||
`borrowernumber` int(11) DEFAULT NULL,
|
||||
`categorycode` varchar(10) DEFAULT NULL,
|
||||
`message_attribute_id` int(11) DEFAULT 0,
|
||||
`days_in_advance` int(11) DEFAULT 0,
|
||||
`days_in_advance` int(11) DEFAULT NULL,
|
||||
`wants_digest` tinyint(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`borrower_message_preference_id`),
|
||||
KEY `borrowernumber` (`borrowernumber`),
|
||||
|
|
Loading…
Reference in a new issue