Merge branch 'h_cust_main_index_fix' of https://github.com/Jayceh/Freeside
authorIvan Kohler <ivan@freeside.biz>
Tue, 2 Sep 2014 22:22:56 +0000 (15:22 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 2 Sep 2014 22:22:56 +0000 (15:22 -0700)
FS/FS/Schema.pm

index c635ea0..02fcf8e 100644 (file)
@@ -254,11 +254,11 @@ sub dbdef_dist {
        # necessary because of the evil OR username for older data, be really nice if everything was just migrated to usernum and we could drop username
        # This will not be helpful to mysql, but postgres smartly does a bitmap across both indexes, mysql will just use one
 
-      $h_indices{"h_${table}_username"} =
+      $h_indices{"h_${table}_user"} =
          DBIx::DBSchema::Index->new({
-           'name'    => "h_${table}_username",
+           'name'    => "h_${table}_user",
            'unique'  => 0,
-           'columns' => [ 'history_username'],
+           'columns' => [ 'history_user'],
          });
     }