Lines 6-11
require Koha;
Link Here
|
6 |
require Koha::Database; |
6 |
require Koha::Database; |
7 |
require Koha::Config; |
7 |
require Koha::Config; |
8 |
|
8 |
|
|
|
9 |
=head1 API |
10 |
|
11 |
=head2 Class methods |
12 |
|
13 |
=head3 needs_update |
14 |
|
15 |
Determines if an update is needed by checking |
16 |
the database version, the code version, and whether |
17 |
there are any atomic updates available. |
18 |
|
19 |
=cut |
20 |
|
9 |
sub needs_update { |
21 |
sub needs_update { |
10 |
my $needs_update = 1; |
22 |
my $needs_update = 1; |
11 |
my $dbh = Koha::Database::dbh(); |
23 |
my $dbh = Koha::Database::dbh(); |
Lines 30-36
sub needs_update {
Link Here
|
30 |
return $needs_update; |
42 |
return $needs_update; |
31 |
} |
43 |
} |
32 |
|
44 |
|
33 |
=head2 TransformToNum |
45 |
=head3 TransformToNum |
34 |
|
46 |
|
35 |
Transform the Koha version from a 4 parts string |
47 |
Transform the Koha version from a 4 parts string |
36 |
to a number, with just 1 . |
48 |
to a number, with just 1 . |
Lines 50-56
sub TransformToNum {
Link Here
|
50 |
return $version; |
62 |
return $version; |
51 |
} |
63 |
} |
52 |
|
64 |
|
53 |
=head2 get_atomic_updates |
65 |
=head3 get_atomic_updates |
54 |
|
66 |
|
55 |
Get atomic database updates |
67 |
Get atomic database updates |
56 |
|
68 |
|