diff options
author | mkanat%kerio.com <> | 2005-03-10 17:04:53 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-03-10 17:04:53 +0100 |
commit | 190493a53426b2fdc7c589ea144af6515b94b06b (patch) | |
tree | 10bf82d490909d8109f15fecdd6a12743d1d219f /Bugzilla/DB | |
parent | c4804fb41628501553714fd98d0078d05353e930 (diff) | |
download | bugzilla-190493a53426b2fdc7c589ea144af6515b94b06b.tar.gz bugzilla-190493a53426b2fdc7c589ea144af6515b94b06b.tar.xz |
Bug 285443: Schema::Pg should remove FULLTEXT attribute from indexes
Patch By Ed Sabol <edwardjsabol@iname.com> r=mkanat, a=justdave
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r-- | Bugzilla/DB/Schema/Pg.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema/Pg.pm b/Bugzilla/DB/Schema/Pg.pm index 23806aed1..c5b229278 100644 --- a/Bugzilla/DB/Schema/Pg.pm +++ b/Bugzilla/DB/Schema/Pg.pm @@ -39,6 +39,22 @@ sub _initialize { $self = $self->SUPER::_initialize; + # Remove FULLTEXT index types from the schemas. + foreach my $table (keys %{ $self->{schema} }) { + if ($self->{schema}{$table}{INDEXES}) { + foreach my $index (@{ $self->{schema}{$table}{INDEXES} }) { + if (ref($index) eq 'HASH') { + delete($index->{TYPE}) if ($index->{TYPE} eq 'FULLTEXT'); + } + } + foreach my $index (@{ $self->{abstract_schema}{$table}{INDEXES} }) { + if (ref($index) eq 'HASH') { + delete($index->{TYPE}) if ($index->{TYPE} eq 'FULLTEXT'); + } + } + } + } + $self->{db_specific} = { BOOLEAN => 'smallint', |