Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
`imageurl` varchar(200) default NULL,
PRIMARY KEY (`id`),
KEY `name` (`category`),
- KEY `lib` (`lib`)
+ KEY `lib` (`lib`),
+ KEY `auth_value_idx` (`authorised_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
`password_allowed` tinyint(1) NOT NULL default 0,
`staff_searchable` tinyint(1) NOT NULL default 0,
`authorised_value_category` varchar(10) default NULL,
- PRIMARY KEY (`code`)
+ PRIMARY KEY (`code`),
+ KEY `auth_val_cat_idx` (`authorised_value_category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
SetVersion ($DBversion);
}
+$DBversion = 'XXXX';
+if (C4::Context->preference('Version') < TransformToNum($DBversion)){
+ $dbh->do(qq{CREATE INDEX auth_value_idx ON authorised_values (authorised_value)});
+ $dbh->do(qq{CREATE INDEX auth_val_cat_idx ON borrower_attribute_types (authorised_value_category)});
+ print "Create index on authorised_values and borrower_attribute_types (bug 4139)";
+ SetVersion ($DBversion);
+}
+
=item DropAllForeignKeys($table)
sub kohaversion {
- our $VERSION = '3.01.00.142';
+ our $VERSION = 'XXXX';
# version needs to be set this way
# so that it can be picked up by Makefile.PL