Commit 190493a5 authored by mkanat%kerio.com's avatar mkanat%kerio.com

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

Patch By Ed Sabol <edwardjsabol@iname.com> r=mkanat, a=justdave
parent c4804fb4
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment