зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla Bug 356146 - tr_install.pl fails on PostgreSQL
This commit is contained in:
Родитель
649b3080af
Коммит
3b21b24247
|
@ -342,7 +342,7 @@ Index: /bmo-2.22/Bugzilla/DB/Schema.pm
|
|||
+ table_name => {TYPE => 'varchar(100)', NOTNULL => 1},
|
||||
+ ],
|
||||
+ INDEXES => [
|
||||
+ fielddefs_name_idx => ['name'],
|
||||
+ test_fielddefs_name_idx => ['name'],
|
||||
+ ],
|
||||
+ },
|
||||
+
|
||||
|
|
|
@ -382,6 +382,11 @@ sub UpdateDB {
|
|||
$dbh->bz_drop_index('test_environments', 'environment_name_idx');
|
||||
$dbh->bz_add_index('test_environments', 'environment_name_idx', ['name']);
|
||||
}
|
||||
if ($dbh->isa('Bugzilla::DB::Mysql') and
|
||||
$dbh->bz_index_info('test_fielddefs', 'fielddefs_name_idx')) {
|
||||
$dbh->bz_drop_index('test_fielddefs', 'fielddefs_name_idx');
|
||||
$dbh->bz_add_index('test_fielddefs', 'test_fielddefs_name_idx', ['name']);
|
||||
}
|
||||
|
||||
populateMiscTables($dbh);
|
||||
populateEnvTables($dbh);
|
||||
|
|
Загрузка…
Ссылка в новой задаче