Bug 20144: [sql_modes] Set missinglist and recievedlist in subscriptionhistory
Fix for: Field 'missinglist' doesn't have a default value t/db_dependent/Koha/Acquisition/Booksellers.t from mysql doc: BLOB, TEXT, GEOMETRY, and JSON columns cannot be assigned a default value. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
0ed2a1f5e8
commit
f975945c2b
|
|
@ -1453,8 +1453,8 @@ sub NewSubscription {
|
|||
# then create the 1st expected number
|
||||
$query = qq(
|
||||
INSERT INTO subscriptionhistory
|
||||
(biblionumber, subscriptionid, histstartdate)
|
||||
VALUES (?,?,?)
|
||||
(biblionumber, subscriptionid, histstartdate, missinglist, recievedlist)
|
||||
VALUES (?,?,?, '', '')
|
||||
);
|
||||
$sth = $dbh->prepare($query);
|
||||
$sth->execute( $biblionumber, $subscriptionid, $startdate);
|
||||
|
|
|
|||
Loading…
Reference in New Issue