use Digest::SHA1 for sha1_hex
Justin Hunter [Wed, 27 Jan 2010 07:19:56 +0000 (23:19 -0800)]
lib/SQL/Translator/Producer/SQL/MySQL.pm

index c1691e3..01e9c40 100644 (file)
@@ -805,6 +805,7 @@ HEADER_COMMENT
     use constant COLLISION_TAG_LENGTH => 8;
 
     method truncate_id_uniquely(Str $desired_name, Int $max_symbol_length) {
+        use Digest::SHA1 qw(sha1_hex);
         return $desired_name
           unless defined $desired_name && length $desired_name > $max_symbol_length;