Bug 3670: change 'Item DUE' to 'Item Due' in English dbs

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Nicole Engard 2011-03-11 11:14:49 +01:00 committed by Chris Cormack
parent d6e580439b
commit 07b9125861
2 changed files with 8 additions and 1 deletions

View file

@ -1,7 +1,7 @@
insert into `message_attributes`
(`message_attribute_id`, message_name, `takes_days`)
values
(1, 'Item DUE', 0),
(1, 'Item Due', 0),
(2, 'Advance Notice', 1),
(4, 'Hold Filled', 0),
(5, 'Item Check-in', 0),

View file

@ -4083,6 +4083,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = 'XXX';
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do("UPDATE `message_attributes` SET message_name='Item Due' WHERE message_attribute_id=1 AND message_name LIKE 'Item DUE'");
print "Upgrade to $DBversion done ( fix capitalization in message type )\n";
SetVersion ($DBversion);
}
=head1 FUNCTIONS
=head2 DropAllForeignKeys($table)