Bug 17960 - DBRev 16.12.00.007
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
2e9ae12aa4
commit
6abf904bff
3 changed files with 20 additions and 19 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 = "16.12.00.006";
|
||||
$VERSION = "16.12.00.007";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
$DBversion = 'XXX';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
if ( column_exists('opac_news', 'new' ) ) {
|
||||
$dbh->do(q|ALTER TABLE opac_news CHANGE COLUMN new content text NOT NULL|);
|
||||
}
|
||||
|
||||
my ( $used_in_templates ) = $dbh->selectrow_array(q|
|
||||
SELECT COUNT(*) FROM letter WHERE content LIKE "%<<opac_news.new>>%";
|
||||
|);
|
||||
if ( $used_in_templates ) {
|
||||
print "WARNING - It seems that you are using the opac_news.new column in your notice templates\n";
|
||||
print "Since it has now been renamed with opac_news.content, you should update them.\n";
|
||||
}
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 17960 - Rename opac_news with opac_news.content)\n";
|
||||
}
|
|
@ -13861,6 +13861,25 @@ if ( CheckVersion($DBversion) ) {
|
|||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "16.12.00.007";
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
|
||||
if ( column_exists('opac_news', 'new' ) ) {
|
||||
$dbh->do(q|ALTER TABLE opac_news CHANGE COLUMN new content text NOT NULL|);
|
||||
}
|
||||
|
||||
my ( $used_in_templates ) = $dbh->selectrow_array(q|
|
||||
SELECT COUNT(*) FROM letter WHERE content LIKE "%<<opac_news.new>>%";
|
||||
|);
|
||||
if ( $used_in_templates ) {
|
||||
print "WARNING - It seems that you are using the opac_news.new column in your notice templates\n";
|
||||
print "Since it has now been renamed with opac_news.content, you should update them.\n";
|
||||
}
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 17960 - Rename opac_news with opac_news.content)\n";
|
||||
}
|
||||
|
||||
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
|
|
Loading…
Reference in a new issue