Lines 34-39
my $list = 0;
Link Here
|
34 |
my $pending = 0; |
34 |
my $pending = 0; |
35 |
my $directory = ''; |
35 |
my $directory = ''; |
36 |
my $git = ''; |
36 |
my $git = ''; |
|
|
37 |
my $single = ''; |
37 |
|
38 |
|
38 |
GetOptions( |
39 |
GetOptions( |
39 |
'v|verbose:i' => \$verbose, |
40 |
'v|verbose:i' => \$verbose, |
Lines 45-50
GetOptions(
Link Here
|
45 |
'l|list' => \$list, |
46 |
'l|list' => \$list, |
46 |
'p|pending' => \$pending, |
47 |
'p|pending' => \$pending, |
47 |
'g|git:s' => \$git, |
48 |
'g|git:s' => \$git, |
|
|
49 |
's|single:s' => \$single, |
48 |
); |
50 |
); |
49 |
|
51 |
|
50 |
my $usage = << 'ENDUSAGE'; |
52 |
my $usage = << 'ENDUSAGE'; |
Lines 58-78
applied.
Link Here
|
58 |
Also acts as a gateway to CRUD the koha.database_updates-table. |
60 |
Also acts as a gateway to CRUD the koha.database_updates-table. |
59 |
|
61 |
|
60 |
-v --verbose Integer, 1 is not so verbose, 3 is maximally verbose. |
62 |
-v --verbose Integer, 1 is not so verbose, 3 is maximally verbose. |
|
|
63 |
|
61 |
-h --help Flag, This nice help! |
64 |
-h --help Flag, This nice help! |
|
|
65 |
|
62 |
-a --apply Flag, Apply all the pending atomicupdates from the |
66 |
-a --apply Flag, Apply all the pending atomicupdates from the |
63 |
atomicupdates-directory. |
67 |
atomicupdates-directory. |
|
|
68 |
|
64 |
-d --directory Path, From which directory to look for atomicupdate-scripts. |
69 |
-d --directory Path, From which directory to look for atomicupdate-scripts. |
65 |
Defaults to '$KOHA_PATH/installer/data/mysql/atomicupdate/' |
70 |
Defaults to '$KOHA_PATH/installer/data/mysql/atomicupdate/' |
|
|
71 |
|
72 |
-s --single Path, execute a single atomicupdate-script. |
73 |
eg. atomicupdate/Bug01243-SingleFeature.pl |
74 |
|
66 |
-r --remove String, Remove the upgrade entry from koha.database_updates |
75 |
-r --remove String, Remove the upgrade entry from koha.database_updates |
67 |
eg. --remove "Bug71337" |
76 |
eg. --remove "Bug71337" |
|
|
77 |
|
68 |
-i --insert Path, Add an upgrade log entry for the given atomicupdate-file. |
78 |
-i --insert Path, Add an upgrade log entry for the given atomicupdate-file. |
69 |
Useful to revert an accidental --remove -operation or for |
79 |
Useful to revert an accidental --remove -operation or for |
70 |
testing. |
80 |
testing. Does not execute the update script, simply adds |
|
|
81 |
the log entry. |
71 |
eg. -i installer/data/mysql/atomicupdate/Bug5453-Example.pl |
82 |
eg. -i installer/data/mysql/atomicupdate/Bug5453-Example.pl |
|
|
83 |
|
72 |
-l --list Flag, List all entries in the koha.database_updates-table. |
84 |
-l --list Flag, List all entries in the koha.database_updates-table. |
73 |
This typically means all applied atomicupdates. |
85 |
This typically means all applied atomicupdates. |
|
|
86 |
|
74 |
-p --pending Flag, List all pending atomicupdates from the |
87 |
-p --pending Flag, List all pending atomicupdates from the |
75 |
atomicupdates-directory. |
88 |
atomicupdates-directory. |
|
|
89 |
|
76 |
-g --git Path, Build the update order from the Git repository given, |
90 |
-g --git Path, Build the update order from the Git repository given, |
77 |
or default to the Git repository in $KOHA_PATH. |
91 |
or default to the Git repository in $KOHA_PATH. |
78 |
Eg. --git 1, to build with default values, or |
92 |
Eg. --git 1, to build with default values, or |