Bug 10572: (follow-up) DBrev to ensure presence of phone transport type

Test plan:
Run the updatestructure step of web installer.
Check if you have a phone message_transport_type.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Marcel de Rooy 2013-08-07 14:24:23 +02:00 committed by Galen Charlton
parent 568f32606c
commit 2eb34034df
1 changed files with 11 additions and 0 deletions

View File

@ -7636,6 +7636,17 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.13.00.XXX";
if ( CheckVersion($DBversion) ) {
#add phone if it is not there already (explains the ignore option)
$dbh->do("
INSERT IGNORE INTO message_transport_types (message_transport_type) values ('phone');
");
print "Upgrade to $DBversion done (Bug 10572: Add phone to message_transport_types table for new installs)\n";
SetVersion($DBversion);
}
=head1 FUNCTIONS
=head2 TableExists($table)