Line 0
Link Here
|
|
|
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
2 |
if ( CheckVersion($DBversion) ) { |
3 |
if ( !column_exists( 'localization', 'interface' ) ) { |
4 |
$dbh->do("ALTER TABLE `localization` ADD COLUMN `interface` VARCHAR(30) DEFAULT NULL AFTER `entity`"); |
5 |
$dbh->do("ALTER TABLE `localization` DROP FOREIGN KEY `entity_code_lang`"); |
6 |
$dbh->do("ALTER TABLE `localization` ADD UNIQUE KEY `entity_code_interface_lang` (entity, code, interface, lang)"); |
7 |
} |
8 |
|
9 |
SetVersion($DBversion); |
10 |
print "Upgrade to $DBversion done (Bug 20307 - Update localization table with interface)\n"; |
11 |
} |