Bug 15032: DBRev 20.06.00.045
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
1338060713
commit
2e08fa0b18
2
Koha.pm
2
Koha.pm
|
|
@ -29,7 +29,7 @@ use vars qw{ $VERSION };
|
|||
# - #4 : the developer version. The 4th number is the database subversion.
|
||||
# used by developers when the database changes. updatedatabase take care of the changes itself
|
||||
# and is automatically called by Auth.pm when needed.
|
||||
$VERSION = "20.06.00.044";
|
||||
$VERSION = "20.06.00.045";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,31 +0,0 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
# $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" );
|
||||
|
||||
unless ( TableExists('background_jobs') ) {
|
||||
$dbh->do(q|
|
||||
CREATE TABLE background_jobs (
|
||||
id INT(11) NOT NULL AUTO_INCREMENT,
|
||||
status VARCHAR(32),
|
||||
progress INT(11),
|
||||
size INT(11),
|
||||
borrowernumber INT(11),
|
||||
type VARCHAR(64),
|
||||
data TEXT,
|
||||
enqueued_on DATETIME DEFAULT NULL,
|
||||
started_on DATETIME DEFAULT NULL,
|
||||
ended_on DATETIME DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|);
|
||||
}
|
||||
|
||||
$dbh->do(qq{
|
||||
INSERT IGNORE permissions (module_bit, code, description)
|
||||
VALUES
|
||||
(3, 'manage_background_jobs', 'Manage background jobs')
|
||||
});
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 15032 - Add new table background_jobs)\n";
|
||||
}
|
||||
|
|
@ -22923,6 +22923,36 @@ if( CheckVersion( $DBversion ) ) {
|
|||
NewVersion( $DBversion, 22343, "Add SMTP configuration options");
|
||||
}
|
||||
|
||||
$DBversion = '20.06.00.045';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
unless ( TableExists('background_jobs') ) {
|
||||
$dbh->do(q|
|
||||
CREATE TABLE background_jobs (
|
||||
id INT(11) NOT NULL AUTO_INCREMENT,
|
||||
status VARCHAR(32),
|
||||
progress INT(11),
|
||||
size INT(11),
|
||||
borrowernumber INT(11),
|
||||
type VARCHAR(64),
|
||||
data TEXT,
|
||||
enqueued_on DATETIME DEFAULT NULL,
|
||||
started_on DATETIME DEFAULT NULL,
|
||||
ended_on DATETIME DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|);
|
||||
}
|
||||
|
||||
$dbh->do(qq{
|
||||
INSERT IGNORE permissions (module_bit, code, description)
|
||||
VALUES
|
||||
(3, 'manage_background_jobs', 'Manage background jobs')
|
||||
});
|
||||
|
||||
NewVersion( $DBversion, 15032, "Add new table background_jobs");
|
||||
}
|
||||
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';
|
||||
|
|
|
|||
Loading…
Reference in New Issue