Bug 11175: Add syspref MaxComponentRecords to remove hardcoded limit
[srvgit] / installer / data / mysql / atomicupdate / bug_11175.perl
1 $DBversion = 'XXX';  # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3     $dbh->do("INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('ShowComponentRecords', 'nowhere', 'nowhere|staff|opac|both','In which record detail pages to show list of the component records, as linked via 773','Choice')");
4
5     $dbh->do("INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('MaxComponentRecords', '300', '','Max number of component records to display','Integer')");
6
7     SetVersion( $DBversion );
8     print "Upgrade to $DBversion done (Bug 11175: Show component records in detail views)\n";
9 }