X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=inline;f=installer%2Fdata%2Fmysql%2Fupdatedatabase.pl;h=63b880309379ac7a44f55b4bab7bc11f8992907a;hb=762ce7abe6ee42d24d415c9b22232fa6730c6604;hp=db35f3afd8cf4ab355c2e08b18d628d18560152c;hpb=7a7e018ed357f0af3fa0b3b3331ea7390c067a3d;p=koha.git diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index db35f3afd8..63b8803093 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -5995,6 +5995,13 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } +$DBversion = "XXX"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer')"); + print "Upgrade to $DBversion done (Added HoldsToPullStartDate syspref)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 TableExists($table)