From: Ken Youens-Clark Date: Thu, 21 Aug 2003 20:27:39 +0000 (+0000) Subject: Small change. X-Git-Tag: v0.04~240 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cd9ccb3e79621e26fb30c8e6a9b14dd842005a9d;p=dbsrgits%2FSQL-Translator.git Small change. --- diff --git a/lib/SQL/Translator/Producer/Diagram.pm b/lib/SQL/Translator/Producer/Diagram.pm index ca24f6c..689a043 100644 --- a/lib/SQL/Translator/Producer/Diagram.pm +++ b/lib/SQL/Translator/Producer/Diagram.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::Diagram; # ------------------------------------------------------------------- -# $Id: Diagram.pm,v 1.5 2003-08-04 18:44:10 kycl4rk Exp $ +# $Id: Diagram.pm,v 1.6 2003-08-21 20:27:39 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark # @@ -27,7 +27,7 @@ use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(debug); use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/; $DEBUG = 0 unless defined $DEBUG; use constant VALID_FONT_SIZE => { @@ -137,7 +137,8 @@ sub produce { $name .= ' *'; $legend{'Primary key'} = '*'; } - elsif ( $f->is_unique ) { + + if ( $f->is_unique ) { $name .= ' [U]'; $legend{'Unique constraint'} = '[U]'; }