bumping to 058 : opac_news lang field was too short

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2008-03-01 06:09:52 +13:00 committed by Joshua Ferraro
parent 89c8aa9c0f
commit eebc452ba9
3 changed files with 13 additions and 2 deletions

View File

@ -1362,7 +1362,7 @@ CREATE TABLE `opac_news` (
`idnew` int(10) unsigned NOT NULL auto_increment,
`title` varchar(250) NOT NULL default '',
`new` text NOT NULL,
`lang` varchar(4) NOT NULL default '',
`lang` varchar(25) NOT NULL default '',
`timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP,
`expirationdate` date default NULL,
`number` int(11) default NULL,

View File

@ -1059,6 +1059,17 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
}
$DBversion = "3.00.00.058";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("ALTER TABLE `opac_news`
CHANGE `lang` `lang` VARCHAR( 25 )
CHARACTER SET utf8
COLLATE utf8_general_ci
NOT NULL ");
print "Upgrade to $DBversion done ( lang field in opac_news made longer )\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table

View File

@ -10,7 +10,7 @@
use strict;
sub kohaversion {
our $VERSION = "3.00.00.057";
our $VERSION = "3.00.00.058";
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install