From: Luke Saunders Date: Fri, 25 Apr 2008 17:35:24 +0000 (+0000) Subject: removed auto-generated indexes from being explicitly created X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc72ad53c3c0db26da666e09e76ce826af9806f1;p=dbsrgits%2FDBIx-Class-Historic.git removed auto-generated indexes from being explicitly created --- diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index 1b6266f..468256e 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -96,13 +96,6 @@ sub parse { $table->primary_key($source->primary_columns); my @primary = $source->primary_columns; - foreach my $field (@primary) { - my $index = $table->add_index( - name => $field, - fields => [$field], - type => 'NORMAL', - ); - } my %unique_constraints = $source->unique_constraints; foreach my $uniq (sort keys %unique_constraints) { if (!$source->compare_relationship_keys($unique_constraints{$uniq}, \@primary)) { @@ -111,13 +104,6 @@ sub parse { name => _create_unique_symbol($uniq), fields => $unique_constraints{$uniq} ); - - my $index = $table->add_index( - name => _create_unique_symbol(join('_', @{$unique_constraints{$uniq}})), - fields => $unique_constraints{$uniq}, - type => 'NORMAL', - ); - } }