Bug 28813: DBRev 21.06.00.014
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
229aaf6d2b
commit
6e1dbac838
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 = "21.06.00.013";
|
||||
$VERSION = "21.06.00.014";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,17 +0,0 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
if ( column_exists('message_queue', 'delivery_note') ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE message_queue CHANGE COLUMN delivery_note failure_code MEDIUMTEXT;
|
||||
});
|
||||
}
|
||||
|
||||
if( !column_exists( 'message_queue', 'failure_code' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE message_queue ADD failure_code mediumtext AFTER content_type
|
||||
});
|
||||
}
|
||||
|
||||
# Always end with this (adjust the bug info)
|
||||
NewVersion( $DBversion, 28813, "Update delivery_note to failure_code in message_queue");
|
||||
}
|
||||
|
|
@ -24580,6 +24580,23 @@ if( CheckVersion( $DBversion ) ) {
|
|||
NewVersion( $DBversion, 22435, "Update existing offsets");
|
||||
}
|
||||
|
||||
$DBversion = '21.06.00.014';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
if ( column_exists('message_queue', 'delivery_note') ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE message_queue CHANGE COLUMN delivery_note failure_code MEDIUMTEXT
|
||||
});
|
||||
}
|
||||
|
||||
if( !column_exists( 'message_queue', 'failure_code' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE message_queue ADD failure_code mediumtext AFTER content_type
|
||||
});
|
||||
}
|
||||
|
||||
NewVersion( $DBversion, 28813, "Update delivery_note to failure_code in message_queue");
|
||||
}
|
||||
|
||||
# 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