Bug 285443: Schema::Pg should remove FULLTEXT attribute from indexes

Patch By Ed Sabol <edwardjsabol@iname.com> r=mkanat, a=justdave


git-svn-id: svn://10.0.0.236/trunk@170506 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%kerio.com
2005-03-10 08:04:53 +00:00
parent c508074d16
commit 5efaabbcb3

View File

@@ -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',