Skip to content

Commit

Permalink
left,right indexes are unique and ascending
Browse files Browse the repository at this point in the history
  • Loading branch information
rvosa committed Apr 24, 2017
1 parent 89d7c80 commit 5ce1121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Bio/Phylo/Forest/DBTree.pm
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,6 @@ sub _rs { shift->resultset('Node') }
__DATA__
create table node(id int not null,parent int,left int,right int,name varchar(20),length float,height float,primary key(id));
create index parent_idx on node(parent);
create index left_idx on node(left);
create index right_idx on node(right);
create unique index left_idx on node(left asc);
create unique index right_idx on node(right asc);
create index name_idx on node(name);

0 comments on commit 5ce1121

Please sign in to comment.