From: Justin Hunter Date: Tue, 27 Jul 2010 03:17:06 +0000 (-0700) Subject: fix up versioning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7aecfb4cc9331ada2a333e40a7cc5efc750e1f38;p=dbsrgits%2FSQL-Translator-2.0-ish.git fix up versioning --- diff --git a/lib/SQL/Translator.pm b/lib/SQL/Translator.pm index 3fbb0e7..21026db 100644 --- a/lib/SQL/Translator.pm +++ b/lib/SQL/Translator.pm @@ -7,6 +7,7 @@ class SQL::Translator { use SQL::Translator::Object::Schema; our $VERSION = '0.001'; + $VERSION = eval $VERSION; has 'parser' => ( isa => Str, @@ -62,13 +63,13 @@ class SQL::Translator { predicate => 'has_producer_args', ); + has 'version' => (isa => Str, is => 'ro', default => $VERSION); has 'add_drop_table' => (isa => Bool, is => 'rw', default => 0); has 'no_comments' => (isa => Bool, is => 'rw', default => 0); has 'show_warnings' => (isa => Bool, is => 'rw', default => 1); has 'trace' => (isa => Bool, is => 'rw', default => 0); has 'quote_table_names' => (isa => Bool, is => 'rw', default => 0); has 'quote_field_names' => (isa => Bool, is => 'rw', default => 0); - has 'version' => (isa => Str, is => 'rw'); has 'filename' => (isa => Str, is => 'rw'); has '_producer_mapping' => (