[Bast-commits] r4297 - DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx

captainL at dev.catalyst.perl.org captainL at dev.catalyst.perl.org
Fri Apr 25 18:35:24 BST 2008


Author: captainL
Date: 2008-04-25 18:35:24 +0100 (Fri, 25 Apr 2008)
New Revision: 4297

Modified:
   DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm
Log:
removed auto-generated indexes from being explicitly created

Modified: DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm	2008-04-25 16:35:40 UTC (rev 4296)
+++ DBIx-Class/0.08/trunk/lib/SQL/Translator/Parser/DBIx/Class.pm	2008-04-25 17:35:24 UTC (rev 4297)
@@ -96,13 +96,6 @@
         $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 @@
                             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',
-               );
-
             }
         }
 




More information about the Bast-commits mailing list