Bug 28813: DBRev 21.05.02.002
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
cdb99cf403
commit
e6d9ff76fe
3 changed files with 18 additions and 18 deletions
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.05.02.001";
|
||||
$VERSION = "21.05.02.002";
|
||||
|
||||
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");
|
||||
}
|
|
@ -24397,6 +24397,23 @@ if( CheckVersion( $DBversion ) ) {
|
|||
NewVersion( $DBversion, 28567, "Set to NULL empty branches fields");
|
||||
}
|
||||
|
||||
$DBversion = '21.05.02.002';
|
||||
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 a new issue