Bug 15504: (QA follow-up) Fix dbrev

Resolve:
ERROR - {UNKNOWN}: DBI Exception: DBD::mysql::db do failed: Unknown column 'check_out' in 'field list' at /usr/share/koha/C4/Installer.pm line 741

Test plan:
Remove new pref from db.
Run dbrev again.
Check results.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-10-12 07:26:40 +00:00 committed by Tomas Cohen Arazi
parent b46b614b6c
commit 7a91be1814
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -14,7 +14,8 @@ return {
my $triggers = $tracklastactivity ? 'check_out,connection,login' : ''; my $triggers = $tracklastactivity ? 'check_out,connection,login' : '';
$dbh->do( $dbh->do(
qq{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('TrackLastPatronActivityTriggers',$triggers,NULL,'If set, the field borrowers.lastseen will be updated every time a patron is does a selected option','multiple') } qq{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('TrackLastPatronActivityTriggers',?,NULL,'If set, the field borrowers.lastseen will be updated every time a patron is does a selected option','multiple') },
undef, $triggers,
); );
say $out "Added system preference 'TrackLastPatronActivityTriggers'"; say $out "Added system preference 'TrackLastPatronActivityTriggers'";