Lines 18-29
Link Here
|
18 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
18 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 |
|
19 |
|
20 |
use C4::Context; |
20 |
use C4::Context; |
21 |
use Koha::AtomicUpdater; |
|
|
22 |
|
21 |
|
23 |
my $dbh = C4::Context->dbh(); |
22 |
my $dbh = C4::Context->dbh(); |
24 |
my $atomicUpdater = Koha::AtomicUpdater->new(); |
|
|
25 |
|
26 |
unless($atomicUpdater->find('Bug15108')) { |
27 |
|
23 |
|
28 |
$dbh->do("ALTER TABLE biblioitems ADD KEY `timestamp` (`timestamp`);"); |
24 |
$dbh->do("ALTER TABLE biblioitems ADD KEY `timestamp` (`timestamp`);"); |
29 |
$dbh->do("ALTER TABLE deletedbiblioitems ADD KEY `timestamp` (`timestamp`);"); |
25 |
$dbh->do("ALTER TABLE deletedbiblioitems ADD KEY `timestamp` (`timestamp`);"); |
Lines 31-34
unless($atomicUpdater->find('Bug15108')) {
Link Here
|
31 |
$dbh->do("ALTER TABLE deleteditems ADD KEY `timestamp` (`timestamp`);"); |
27 |
$dbh->do("ALTER TABLE deleteditems ADD KEY `timestamp` (`timestamp`);"); |
32 |
|
28 |
|
33 |
print "Upgrade done (Bug 15108 - OAI-PMH provider improvements)\n"; |
29 |
print "Upgrade done (Bug 15108 - OAI-PMH provider improvements)\n"; |
34 |
} |
|
|
35 |
- |