Merge branch 'bug_9207' into 3.12-master
This commit is contained in:
commit
dcc75ed3fa
|
|
@ -896,7 +896,8 @@ CREATE TABLE `import_records` (
|
|||
CONSTRAINT `import_records_ifbk_1` FOREIGN KEY (`import_batch_id`)
|
||||
REFERENCES `import_batches` (`import_batch_id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
KEY `branchcode` (`branchcode`),
|
||||
KEY `batch_sequence` (`import_batch_id`, `record_sequence`)
|
||||
KEY `batch_sequence` (`import_batch_id`, `record_sequence`),
|
||||
KEY `batch_id_record_type` (`import_batch_id`,`record_type`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
|
|
|
|||
|
|
@ -6477,6 +6477,16 @@ if ( CheckVersion($DBversion) ) {
|
|||
}
|
||||
|
||||
|
||||
$DBversion = "3.11.00.026";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
$dbh->do(qq{
|
||||
ALTER TABLE import_records ADD INDEX batch_id_record_type ( import_batch_id, record_type );
|
||||
});
|
||||
print "Upgrade to $DBversion done (Bug 9207: Add new index batch_id_record_type to import_records)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
|
||||
=head1 FUNCTIONS
|
||||
|
||||
=head2 TableExists($table)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
|
|||
use strict;
|
||||
|
||||
sub kohaversion {
|
||||
our $VERSION = '3.11.00.025';
|
||||
our $VERSION = '3.11.00.026';
|
||||
# version needs to be set this way
|
||||
# so that it can be picked up by Makefile.PL
|
||||
# during install
|
||||
|
|
|
|||
Loading…
Reference in New Issue