From: Peter Rabbitson Date: Thu, 12 Feb 2009 00:35:06 +0000 (+0000) Subject: Force everything to 1.99, hopefully will work X-Git-Tag: v0.11008~234 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=da06ac74ada30aacf656943306679a28605ad5c8;p=dbsrgits%2FSQL-Translator.git Force everything to 1.99, hopefully will work --- diff --git a/bin/sqlt b/bin/sqlt index 6c52319..b5deb3a 100755 --- a/bin/sqlt +++ b/bin/sqlt @@ -153,6 +153,9 @@ use Getopt::Long; use Pod::Usage; use SQL::Translator; +use vars qw( $VERSION ); +$VERSION = '1.99'; + my $from; # the original database my $to; # the destination database my $help; # show POD and bail diff --git a/bin/sqlt-diagram b/bin/sqlt-diagram index 3b5a1ea..0f088e7 100755 --- a/bin/sqlt-diagram +++ b/bin/sqlt-diagram @@ -75,6 +75,9 @@ use Getopt::Long; use Pod::Usage; use SQL::Translator; +use vars '$VERSION'; +$VERSION = '1.99'; + # # Get arguments. # diff --git a/bin/sqlt-diff b/bin/sqlt-diff index 341e073..08ed420 100755 --- a/bin/sqlt-diff +++ b/bin/sqlt-diff @@ -111,6 +111,9 @@ use SQL::Translator; use SQL::Translator::Diff; use SQL::Translator::Schema::Constants; +use vars qw( $VERSION ); +$VERSION = '1.99'; + my ( @input, $list, $help, $debug, $trace, $caseopt, $ignore_index_names, $ignore_constraint_names, $output_db, $mysql_parser_version, $ignore_view_sql, $ignore_proc_sql, $no_batch_alters ); diff --git a/bin/sqlt-diff-old b/bin/sqlt-diff-old index d3f7ffc..84d55cd 100755 --- a/bin/sqlt-diff-old +++ b/bin/sqlt-diff-old @@ -96,6 +96,9 @@ use Data::Dumper; use SQL::Translator; use SQL::Translator::Schema::Constants; +use vars qw( $VERSION ); +$VERSION = '1.99'; + my ( @input, $list, $help, $debug ); for my $arg ( @ARGV ) { if ( $arg =~ m/^-?-l(ist)?$/ ) { diff --git a/bin/sqlt-dumper b/bin/sqlt-dumper index b7d818f..85be62f 100755 --- a/bin/sqlt-dumper +++ b/bin/sqlt-dumper @@ -62,6 +62,9 @@ use Getopt::Long; use SQL::Translator; use File::Basename qw(basename); +use vars '$VERSION'; +$VERSION = '1.99'; + my ( $help, $db, $skip, $skiplike, $db_user, $db_pass, $dsn ); GetOptions( 'h|help' => \$help, diff --git a/bin/sqlt-graph b/bin/sqlt-graph index e3aa3b5..20b0adc 100755 --- a/bin/sqlt-graph +++ b/bin/sqlt-graph @@ -98,6 +98,9 @@ use GraphViz; use Pod::Usage; use SQL::Translator; +use vars '$VERSION'; +$VERSION = '1.99'; + # # Get arguments. # diff --git a/bin/sqlt.cgi b/bin/sqlt.cgi index 3014e14..b6969ef 100755 --- a/bin/sqlt.cgi +++ b/bin/sqlt.cgi @@ -38,6 +38,9 @@ use strict; use CGI; use SQL::Translator; +use vars '$VERSION'; +$VERSION = '1.99'; + my $q = CGI->new; eval { diff --git a/lib/SQL/Translator/Filter/DefaultExtra.pm b/lib/SQL/Translator/Filter/DefaultExtra.pm index 19ae4e8..adac202 100644 --- a/lib/SQL/Translator/Filter/DefaultExtra.pm +++ b/lib/SQL/Translator/Filter/DefaultExtra.pm @@ -53,7 +53,7 @@ objects. use strict; use vars qw/$VERSION/; -$VERSION=0.1; +$VERSION = '1.99'; sub filter { my $schema = shift; diff --git a/lib/SQL/Translator/Filter/Globals.pm b/lib/SQL/Translator/Filter/Globals.pm index 621ffab..e8b30d8 100644 --- a/lib/SQL/Translator/Filter/Globals.pm +++ b/lib/SQL/Translator/Filter/Globals.pm @@ -58,7 +58,7 @@ SQL::Translator::Filter::Globals - Add global fields and indices to all tables. use strict; use vars qw/$VERSION/; -$VERSION=0.1; +$VERSION = '1.99'; sub filter { my $schema = shift; diff --git a/lib/SQL/Translator/Filter/Names.pm b/lib/SQL/Translator/Filter/Names.pm index 361ae90..1f97b6f 100644 --- a/lib/SQL/Translator/Filter/Names.pm +++ b/lib/SQL/Translator/Filter/Names.pm @@ -49,7 +49,7 @@ SQL::Translator::Filter::Names - Tweak the names of schema objects. use strict; use vars qw/$VERSION/; -$VERSION=0.1; +$VERSION = '1.99'; sub filter { my $schema = shift; diff --git a/lib/SQL/Translator/Parser.pm b/lib/SQL/Translator/Parser.pm index 5c4fc09..1806ec8 100644 --- a/lib/SQL/Translator/Parser.pm +++ b/lib/SQL/Translator/Parser.pm @@ -21,6 +21,8 @@ package SQL::Translator::Parser; # ---------------------------------------------------------------------- use strict; +use vars qw( $VERSION ); +$VERSION = '1.99'; sub parse { "" } diff --git a/lib/SQL/Translator/Parser/Access.pm b/lib/SQL/Translator/Parser/Access.pm index 5a86ca0..09126f9 100644 --- a/lib/SQL/Translator/Parser/Access.pm +++ b/lib/SQL/Translator/Parser/Access.pm @@ -40,7 +40,8 @@ something similar to the output of mdbtools (http://mdbtools.sourceforge.net/). =cut use strict; -use vars qw[ $DEBUG $GRAMMAR @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION $GRAMMAR @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; diff --git a/lib/SQL/Translator/Parser/DBI.pm b/lib/SQL/Translator/Parser/DBI.pm index f8b1f4b..2ce7212 100644 --- a/lib/SQL/Translator/Parser/DBI.pm +++ b/lib/SQL/Translator/Parser/DBI.pm @@ -120,7 +120,8 @@ query Oracle directly and skip the parsing of a text file, too. use strict; use DBI; -use vars qw(@EXPORT); +use vars qw($VERSION @EXPORT); +$VERSION = '1.99'; use constant DRIVERS => { mysql => 'MySQL', diff --git a/lib/SQL/Translator/Parser/DBI/DB2.pm b/lib/SQL/Translator/Parser/DBI/DB2.pm index 8ed1ff6..cf859d1 100644 --- a/lib/SQL/Translator/Parser/DBI/DB2.pm +++ b/lib/SQL/Translator/Parser/DBI/DB2.pm @@ -21,7 +21,8 @@ use Data::Dumper; use SQL::Translator::Parser::DB2; use SQL::Translator::Schema::Constants; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +# $VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; # ------------------------------------------------------------------- diff --git a/lib/SQL/Translator/Parser/DBI/MySQL.pm b/lib/SQL/Translator/Parser/DBI/MySQL.pm index eda1ad3..43c3be8 100644 --- a/lib/SQL/Translator/Parser/DBI/MySQL.pm +++ b/lib/SQL/Translator/Parser/DBI/MySQL.pm @@ -42,7 +42,8 @@ use Data::Dumper; use SQL::Translator::Schema::Constants; use SQL::Translator::Parser::MySQL; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; # ------------------------------------------------------------------- diff --git a/lib/SQL/Translator/Parser/DBI/Oracle.pm b/lib/SQL/Translator/Parser/DBI/Oracle.pm index 2d3c760..590519f 100644 --- a/lib/SQL/Translator/Parser/DBI/Oracle.pm +++ b/lib/SQL/Translator/Parser/DBI/Oracle.pm @@ -42,6 +42,8 @@ use SQL::Translator::Schema::Table; use SQL::Translator::Schema::Field; use SQL::Translator::Schema::Constraint; +our $VERSION = '1.99'; + # ------------------------------------------------------------------- sub parse { my ( $tr, $dbh ) = @_; diff --git a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm index 9a5fa3d..4f1a5c6 100644 --- a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm @@ -39,7 +39,8 @@ use DBI; use Data::Dumper; use SQL::Translator::Schema::Constants; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; # ------------------------------------------------------------------- diff --git a/lib/SQL/Translator/Parser/DBI/SQLServer.pm b/lib/SQL/Translator/Parser/DBI/SQLServer.pm index 0fdb1c8..e533e84 100644 --- a/lib/SQL/Translator/Parser/DBI/SQLServer.pm +++ b/lib/SQL/Translator/Parser/DBI/SQLServer.pm @@ -39,7 +39,8 @@ use DBI; use SQL::Translator::Schema; use Data::Dumper; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; no strict 'refs'; diff --git a/lib/SQL/Translator/Parser/DBI/SQLite.pm b/lib/SQL/Translator/Parser/DBI/SQLite.pm index 72a1c1f..57f4e44 100644 --- a/lib/SQL/Translator/Parser/DBI/SQLite.pm +++ b/lib/SQL/Translator/Parser/DBI/SQLite.pm @@ -44,7 +44,8 @@ use DBI; use SQL::Translator::Parser::SQLite; use Data::Dumper; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; # ------------------------------------------------------------------- diff --git a/lib/SQL/Translator/Parser/DBI/Sybase.pm b/lib/SQL/Translator/Parser/DBI/Sybase.pm index bf541a3..affb139 100644 --- a/lib/SQL/Translator/Parser/DBI/Sybase.pm +++ b/lib/SQL/Translator/Parser/DBI/Sybase.pm @@ -39,7 +39,8 @@ use DBI; use SQL::Translator::Schema; use Data::Dumper; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; no strict 'refs'; diff --git a/lib/SQL/Translator/Parser/Excel.pm b/lib/SQL/Translator/Parser/Excel.pm index 86ec92c..8ab6a7a 100644 --- a/lib/SQL/Translator/Parser/Excel.pm +++ b/lib/SQL/Translator/Parser/Excel.pm @@ -49,8 +49,9 @@ and field sizes. True by default. =cut use strict; -use vars qw($DEBUG @EXPORT_OK); +use vars qw($DEBUG $VERSION @EXPORT_OK); $DEBUG = 0 unless defined $DEBUG; +$VERSION = '1.99'; use Spreadsheet::ParseExcel; use Exporter; diff --git a/lib/SQL/Translator/Parser/MySQL.pm b/lib/SQL/Translator/Parser/MySQL.pm index b833d99..c358d7d 100644 --- a/lib/SQL/Translator/Parser/MySQL.pm +++ b/lib/SQL/Translator/Parser/MySQL.pm @@ -148,7 +148,8 @@ More information about the MySQL comment-syntax: Lkclark@cpan.orgE. # ------------------------------------------------------------------- use strict; -use vars qw[ $DEBUG ]; +use vars qw[ $VERSION $DEBUG ]; +$VERSION = '1.99'; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Parser::XML::SQLFairy; diff --git a/lib/SQL/Translator/Parser/XML/SQLFairy.pm b/lib/SQL/Translator/Parser/XML/SQLFairy.pm index c88f366..e6a00a9 100644 --- a/lib/SQL/Translator/Parser/XML/SQLFairy.pm +++ b/lib/SQL/Translator/Parser/XML/SQLFairy.pm @@ -99,7 +99,8 @@ To convert your old format files simply pass them through the translator :) use strict; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use Data::Dumper; diff --git a/lib/SQL/Translator/Parser/YAML.pm b/lib/SQL/Translator/Parser/YAML.pm index 7d0e76f..af8c02c 100644 --- a/lib/SQL/Translator/Parser/YAML.pm +++ b/lib/SQL/Translator/Parser/YAML.pm @@ -21,6 +21,8 @@ package SQL::Translator::Parser::YAML; # ------------------------------------------------------------------- use strict; +use vars qw($VERSION); +$VERSION = '1.99'; use SQL::Translator::Schema; use SQL::Translator::Utils qw(header_comment); diff --git a/lib/SQL/Translator/Parser/xSV.pm b/lib/SQL/Translator/Parser/xSV.pm index bb73c7b..db3191c 100644 --- a/lib/SQL/Translator/Parser/xSV.pm +++ b/lib/SQL/Translator/Parser/xSV.pm @@ -66,7 +66,8 @@ C. # ------------------------------------------------------------------- use strict; -use vars qw(@EXPORT); +use vars qw($VERSION @EXPORT); +$VERSION = '1.99'; use Exporter; use Text::ParseWords qw(quotewords); diff --git a/lib/SQL/Translator/Producer.pm b/lib/SQL/Translator/Producer.pm index 10d437c..a81839f 100644 --- a/lib/SQL/Translator/Producer.pm +++ b/lib/SQL/Translator/Producer.pm @@ -21,6 +21,8 @@ package SQL::Translator::Producer; # ------------------------------------------------------------------- use strict; +use vars qw($VERSION); +$VERSION = '1.99'; sub produce { "" } diff --git a/lib/SQL/Translator/Producer/ClassDBI.pm b/lib/SQL/Translator/Producer/ClassDBI.pm index 4a93011..e66a775 100755 --- a/lib/SQL/Translator/Producer/ClassDBI.pm +++ b/lib/SQL/Translator/Producer/ClassDBI.pm @@ -21,7 +21,8 @@ package SQL::Translator::Producer::ClassDBI; # ------------------------------------------------------------------- use strict; -use vars qw[ $DEBUG ]; +use vars qw[ $VERSION $DEBUG ]; +$VERSION = '1.99'; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Schema::Constants; diff --git a/lib/SQL/Translator/Producer/DB2.pm b/lib/SQL/Translator/Producer/DB2.pm index 8cecc86..325ebb6 100644 --- a/lib/SQL/Translator/Producer/DB2.pm +++ b/lib/SQL/Translator/Producer/DB2.pm @@ -38,7 +38,8 @@ Creates an SQL DDL suitable for DB2. use warnings; use strict; -use vars qw[ $DEBUG $WARN ]; +use vars qw[ $VERSION $DEBUG $WARN ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use SQL::Translator::Schema::Constants; diff --git a/lib/SQL/Translator/Producer/DiaUml.pm b/lib/SQL/Translator/Producer/DiaUml.pm index 5deaee4..646c837 100644 --- a/lib/SQL/Translator/Producer/DiaUml.pm +++ b/lib/SQL/Translator/Producer/DiaUml.pm @@ -58,7 +58,8 @@ automatically arrange them horizontally or vertically. use strict; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use SQL::Translator::Utils 'debug'; diff --git a/lib/SQL/Translator/Producer/Diagram.pm b/lib/SQL/Translator/Producer/Diagram.pm index 151ac13..ca1d1f6 100644 --- a/lib/SQL/Translator/Producer/Diagram.pm +++ b/lib/SQL/Translator/Producer/Diagram.pm @@ -41,7 +41,8 @@ use Data::Dumper; use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(debug); -use vars qw[ $DEBUG ]; +use vars qw[ $VERSION $DEBUG ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use constant VALID_FONT_SIZE => { diff --git a/lib/SQL/Translator/Producer/Dumper.pm b/lib/SQL/Translator/Producer/Dumper.pm index a542c92..4c9da7c 100644 --- a/lib/SQL/Translator/Producer/Dumper.pm +++ b/lib/SQL/Translator/Producer/Dumper.pm @@ -57,9 +57,12 @@ use Config; use SQL::Translator; use File::Temp 'tempfile'; use Template; +use vars qw($VERSION); use Data::Dumper; +$VERSION = '1.99'; + sub produce { my $t = shift; my $args = $t->producer_args; diff --git a/lib/SQL/Translator/Producer/GraphViz.pm b/lib/SQL/Translator/Producer/GraphViz.pm index 42ba5d0..e93b3e3 100644 --- a/lib/SQL/Translator/Producer/GraphViz.pm +++ b/lib/SQL/Translator/Producer/GraphViz.pm @@ -213,7 +213,7 @@ use SQL::Translator::Utils qw(debug); use Scalar::Util qw/openhandle/; use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1451 $ =~ /(\d+)\.(\d+)/; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use constant VALID_LAYOUT => { diff --git a/lib/SQL/Translator/Producer/HTML.pm b/lib/SQL/Translator/Producer/HTML.pm index b4167d9..9a5bc3d 100644 --- a/lib/SQL/Translator/Producer/HTML.pm +++ b/lib/SQL/Translator/Producer/HTML.pm @@ -22,7 +22,9 @@ package SQL::Translator::Producer::HTML; use strict; use Data::Dumper; -use vars qw($NOWRAP $NOLINKTABLE $NAME); +use vars qw($VERSION $NOWRAP $NOLINKTABLE $NAME); + +$VERSION = '1.99'; $NAME = __PACKAGE__; $NOWRAP = 0 unless defined $NOWRAP; diff --git a/lib/SQL/Translator/Producer/Latex.pm b/lib/SQL/Translator/Producer/Latex.pm index db5a882..e84f21d 100644 --- a/lib/SQL/Translator/Producer/Latex.pm +++ b/lib/SQL/Translator/Producer/Latex.pm @@ -58,7 +58,8 @@ automatically arrange them horizontally or vertically. use strict; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use SQL::Translator::Utils 'debug'; diff --git a/lib/SQL/Translator/Producer/MySQL.pm b/lib/SQL/Translator/Producer/MySQL.pm index 0df0745..3819af4 100644 --- a/lib/SQL/Translator/Producer/MySQL.pm +++ b/lib/SQL/Translator/Producer/MySQL.pm @@ -101,7 +101,8 @@ Set the fields charater set and collation order. use strict; use warnings; -use vars qw[ $DEBUG %used_names ]; +use vars qw[ $VERSION $DEBUG %used_names ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; # Maximum length for most identifiers is 64, according to: diff --git a/lib/SQL/Translator/Producer/Oracle.pm b/lib/SQL/Translator/Producer/Oracle.pm index e6c0f6b..b12a5f9 100644 --- a/lib/SQL/Translator/Producer/Oracle.pm +++ b/lib/SQL/Translator/Producer/Oracle.pm @@ -99,7 +99,8 @@ context the slash will be still there to ensure compatibility with SQLPlus. =cut use strict; -use vars qw[ $DEBUG $WARN ]; +use vars qw[ $VERSION $DEBUG $WARN ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use SQL::Translator::Schema::Constants; diff --git a/lib/SQL/Translator/Producer/POD.pm b/lib/SQL/Translator/Producer/POD.pm index 2d173fd..3d21059 100644 --- a/lib/SQL/Translator/Producer/POD.pm +++ b/lib/SQL/Translator/Producer/POD.pm @@ -41,6 +41,8 @@ interesting formats using Pod::POM or Template::Toolkit's POD plugin. =cut use strict; +use vars qw[ $VERSION ]; +$VERSION = '1.99'; use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(header_comment); diff --git a/lib/SQL/Translator/Producer/PostgreSQL.pm b/lib/SQL/Translator/Producer/PostgreSQL.pm index f41ebb2..fab0c2d 100644 --- a/lib/SQL/Translator/Producer/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/PostgreSQL.pm @@ -38,7 +38,8 @@ producer. use strict; use warnings; -use vars qw[ $DEBUG $WARN %used_names ]; +use vars qw[ $DEBUG $WARN $VERSION %used_names ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use base qw(SQL::Translator::Producer); diff --git a/lib/SQL/Translator/Producer/SQLServer.pm b/lib/SQL/Translator/Producer/SQLServer.pm index 96ee131..02c2c67 100644 --- a/lib/SQL/Translator/Producer/SQLServer.pm +++ b/lib/SQL/Translator/Producer/SQLServer.pm @@ -55,7 +55,8 @@ List of values for an enum field. =cut use strict; -use vars qw[ $DEBUG $WARN ]; +use vars qw[ $DEBUG $WARN $VERSION ]; +$VERSION = '1.99'; $DEBUG = 1 unless defined $DEBUG; use Data::Dumper; diff --git a/lib/SQL/Translator/Producer/SQLite.pm b/lib/SQL/Translator/Producer/SQLite.pm index 12e256e..ade2ee3 100644 --- a/lib/SQL/Translator/Producer/SQLite.pm +++ b/lib/SQL/Translator/Producer/SQLite.pm @@ -43,8 +43,9 @@ use Data::Dumper; use SQL::Translator::Schema::Constants; use SQL::Translator::Utils qw(debug header_comment); -use vars qw[ $DEBUG $WARN ]; +use vars qw[ $VERSION $DEBUG $WARN ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; $WARN = 0 unless defined $WARN; diff --git a/lib/SQL/Translator/Producer/Storable.pm b/lib/SQL/Translator/Producer/Storable.pm index 2be0d27..064c624 100755 --- a/lib/SQL/Translator/Producer/Storable.pm +++ b/lib/SQL/Translator/Producer/Storable.pm @@ -41,8 +41,9 @@ takes a long time. =cut use strict; -use vars qw($DEBUG @EXPORT_OK); +use vars qw($DEBUG $VERSION @EXPORT_OK); $DEBUG = 0 unless defined $DEBUG; +$VERSION = '1.99'; use Storable; use Exporter; diff --git a/lib/SQL/Translator/Producer/Sybase.pm b/lib/SQL/Translator/Producer/Sybase.pm index 88f5189..84a9f2b 100644 --- a/lib/SQL/Translator/Producer/Sybase.pm +++ b/lib/SQL/Translator/Producer/Sybase.pm @@ -38,7 +38,8 @@ This module will produce text output of the schema suitable for Sybase. =cut use strict; -use vars qw[ $DEBUG $WARN ]; +use vars qw[ $DEBUG $WARN $VERSION ]; +$VERSION = '1.99'; $DEBUG = 1 unless defined $DEBUG; use Data::Dumper; diff --git a/lib/SQL/Translator/Producer/TT/Base.pm b/lib/SQL/Translator/Producer/TT/Base.pm index 86a63e8..9485092 100644 --- a/lib/SQL/Translator/Producer/TT/Base.pm +++ b/lib/SQL/Translator/Producer/TT/Base.pm @@ -31,7 +31,8 @@ class. use strict; -use vars qw[ @EXPORT_OK ]; +use vars qw[ $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; use Template; use Data::Dumper; diff --git a/lib/SQL/Translator/Producer/TT/Table.pm b/lib/SQL/Translator/Producer/TT/Table.pm index ef9c877..2e396ba 100644 --- a/lib/SQL/Translator/Producer/TT/Table.pm +++ b/lib/SQL/Translator/Producer/TT/Table.pm @@ -177,7 +177,8 @@ whitespace either side, to be recognised. use strict; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use File::Path; diff --git a/lib/SQL/Translator/Producer/TTSchema.pm b/lib/SQL/Translator/Producer/TTSchema.pm index ee5a7f1..cc3e433 100644 --- a/lib/SQL/Translator/Producer/TTSchema.pm +++ b/lib/SQL/Translator/Producer/TTSchema.pm @@ -128,7 +128,8 @@ constructor. use strict; -use vars qw[ $DEBUG @EXPORT_OK ]; +use vars qw[ $DEBUG $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; $DEBUG = 0 unless defined $DEBUG; use Template; diff --git a/lib/SQL/Translator/Producer/XML.pm b/lib/SQL/Translator/Producer/XML.pm index 6cb7b27..9acb4f2 100644 --- a/lib/SQL/Translator/Producer/XML.pm +++ b/lib/SQL/Translator/Producer/XML.pm @@ -45,7 +45,8 @@ Ken Y. Clark Ekclark@cpan.orgE. # ------------------------------------------------------------------- use strict; -use vars qw[ $DEBUG ]; +use vars qw[ $VERSION $DEBUG ]; +$VERSION = '1.99'; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Producer::XML::SQLFairy; diff --git a/lib/SQL/Translator/Producer/XML/SQLFairy.pm b/lib/SQL/Translator/Producer/XML/SQLFairy.pm index 34335f8..60e9eea 100644 --- a/lib/SQL/Translator/Producer/XML/SQLFairy.pm +++ b/lib/SQL/Translator/Producer/XML/SQLFairy.pm @@ -164,7 +164,8 @@ To convert your old format files simply pass them through the translator :) =cut use strict; -use vars qw[ @EXPORT_OK ]; +use vars qw[ $VERSION @EXPORT_OK ]; +$VERSION = '1.99'; use Exporter; use base qw(Exporter); diff --git a/lib/SQL/Translator/Producer/YAML.pm b/lib/SQL/Translator/Producer/YAML.pm index 9ffd9a5..5b30911 100644 --- a/lib/SQL/Translator/Producer/YAML.pm +++ b/lib/SQL/Translator/Producer/YAML.pm @@ -40,6 +40,8 @@ takes a long time. =cut use strict; +use vars qw($VERSION); +$VERSION = '1.99'; use YAML qw(Dump); diff --git a/lib/SQL/Translator/Schema.pm b/lib/SQL/Translator/Schema.pm index 79fb443..b5572db 100644 --- a/lib/SQL/Translator/Schema.pm +++ b/lib/SQL/Translator/Schema.pm @@ -56,7 +56,9 @@ use SQL::Translator::Schema::View; use SQL::Translator::Utils 'parse_list_arg'; use base 'SQL::Translator::Schema::Object'; -use vars qw[ $TABLE_ORDER $VIEW_ORDER $TRIGGER_ORDER $PROC_ORDER ]; +use vars qw[ $VERSION $TABLE_ORDER $VIEW_ORDER $TRIGGER_ORDER $PROC_ORDER ]; + +$VERSION = '1.99'; __PACKAGE__->_attributes(qw/name database translator/); diff --git a/lib/SQL/Translator/Schema/Constants.pm b/lib/SQL/Translator/Schema/Constants.pm index 9a68b31..40c2ed2 100644 --- a/lib/SQL/Translator/Schema/Constants.pm +++ b/lib/SQL/Translator/Schema/Constants.pm @@ -61,8 +61,9 @@ This module exports the following constants for Schema features; use strict; use base qw( Exporter ); -use vars qw( @EXPORT ); +use vars qw( @EXPORT $VERSION ); require Exporter; +$VERSION = '1.99'; @EXPORT = qw[ CHECK_C diff --git a/lib/SQL/Translator/Schema/Constraint.pm b/lib/SQL/Translator/Schema/Constraint.pm index 55f869b..dade0a8 100644 --- a/lib/SQL/Translator/Schema/Constraint.pm +++ b/lib/SQL/Translator/Schema/Constraint.pm @@ -49,7 +49,9 @@ use SQL::Translator::Utils 'parse_list_arg'; use base 'SQL::Translator::Schema::Object'; -use vars qw($TABLE_COUNT $VIEW_COUNT); +use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT); + +$VERSION = '1.99'; my %VALID_CONSTRAINT_TYPE = ( PRIMARY_KEY, 1, diff --git a/lib/SQL/Translator/Schema/Field.pm b/lib/SQL/Translator/Schema/Field.pm index a207f3b..a6f33ea 100644 --- a/lib/SQL/Translator/Schema/Field.pm +++ b/lib/SQL/Translator/Schema/Field.pm @@ -48,7 +48,9 @@ use SQL::Translator::Utils 'parse_list_arg'; use base 'SQL::Translator::Schema::Object'; -use vars qw($TABLE_COUNT $VIEW_COUNT); +use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT); + +$VERSION = '1.99'; # Stringify to our name, being careful not to pass any args through so we don't # accidentally set it to undef. We also have to tweak bool so the object is diff --git a/lib/SQL/Translator/Schema/Index.pm b/lib/SQL/Translator/Schema/Index.pm index 27aaccc..e38fbc3 100644 --- a/lib/SQL/Translator/Schema/Index.pm +++ b/lib/SQL/Translator/Schema/Index.pm @@ -51,7 +51,9 @@ use SQL::Translator::Utils 'parse_list_arg'; use base 'SQL::Translator::Schema::Object'; -use vars qw($TABLE_COUNT $VIEW_COUNT); +use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT); + +$VERSION = '1.99'; my %VALID_INDEX_TYPE = ( UNIQUE => 1, diff --git a/lib/SQL/Translator/Schema/Object.pm b/lib/SQL/Translator/Schema/Object.pm index 1f04b58..c74f7d9 100644 --- a/lib/SQL/Translator/Schema/Object.pm +++ b/lib/SQL/Translator/Schema/Object.pm @@ -41,6 +41,11 @@ use base 'Class::Data::Inheritable'; use base 'Class::Base'; use Class::MakeMethods::Utility::Ref qw( ref_compare ); +use vars qw[ $VERSION ]; + +$VERSION = '1.99'; + + =head1 Construction Derived classes should declare their attributes using the C<_attributes> diff --git a/lib/SQL/Translator/Schema/Procedure.pm b/lib/SQL/Translator/Schema/Procedure.pm index 6b63156..1768e1d 100644 --- a/lib/SQL/Translator/Schema/Procedure.pm +++ b/lib/SQL/Translator/Schema/Procedure.pm @@ -52,6 +52,10 @@ use SQL::Translator::Utils 'parse_list_arg'; use base 'SQL::Translator::Schema::Object'; +use vars qw($VERSION); + +$VERSION = '1.99'; + # ---------------------------------------------------------------------- __PACKAGE__->_attributes( qw/ diff --git a/lib/SQL/Translator/Schema/Table.pm b/lib/SQL/Translator/Schema/Table.pm index 42e2eff..2fbe757 100644 --- a/lib/SQL/Translator/Schema/Table.pm +++ b/lib/SQL/Translator/Schema/Table.pm @@ -49,7 +49,9 @@ use Data::Dumper; use base 'SQL::Translator::Schema::Object'; -use vars qw( $FIELD_ORDER ); +use vars qw( $VERSION $FIELD_ORDER ); + +$VERSION = '1.99'; # Stringify to our name, being careful not to pass any args through so we don't # accidentally set it to undef. We also have to tweak bool so the object is diff --git a/lib/SQL/Translator/Schema/Trigger.pm b/lib/SQL/Translator/Schema/Trigger.pm index 1c2a68a..aa8f4e4 100644 --- a/lib/SQL/Translator/Schema/Trigger.pm +++ b/lib/SQL/Translator/Schema/Trigger.pm @@ -55,7 +55,9 @@ use base 'SQL::Translator::Schema::Object'; use Carp; -use vars qw($TABLE_COUNT $VIEW_COUNT); +use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT); + +$VERSION = '1.99'; # ---------------------------------------------------------------------- diff --git a/lib/SQL/Translator/Schema/View.pm b/lib/SQL/Translator/Schema/View.pm index 44cde72..596294e 100644 --- a/lib/SQL/Translator/Schema/View.pm +++ b/lib/SQL/Translator/Schema/View.pm @@ -48,7 +48,9 @@ use SQL::Translator::Utils 'parse_list_arg'; use base 'SQL::Translator::Schema::Object'; -use vars qw($TABLE_COUNT $VIEW_COUNT); +use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT); + +$VERSION = '1.99'; # ---------------------------------------------------------------------- diff --git a/lib/SQL/Translator/Utils.pm b/lib/SQL/Translator/Utils.pm index d61aa0a..89b2642 100644 --- a/lib/SQL/Translator/Utils.pm +++ b/lib/SQL/Translator/Utils.pm @@ -22,12 +22,13 @@ package SQL::Translator::Utils; use strict; use base qw(Exporter); -use vars qw($DEFAULT_COMMENT @EXPORT_OK); +use vars qw($VERSION $DEFAULT_COMMENT @EXPORT_OK); use Digest::SHA1 qw( sha1_hex ); use Exporter; +$VERSION = '1.99'; $DEFAULT_COMMENT = '-- '; @EXPORT_OK = qw( debug normalize_name header_comment parse_list_arg truncate_id_uniquely $DEFAULT_COMMENT parse_mysql_version diff --git a/t/36-filters.t b/t/36-filters.t index b4e289f..c1aee85 100644 --- a/t/36-filters.t +++ b/t/36-filters.t @@ -13,11 +13,10 @@ $INC{'SQL/Translator/Filter/Ok.pm'} = 'lib/SQL/Translator/Filter/Ok.pm'; #============================================================================= # SQL::Translator::Filter::HelloWorld - Test filter in a package -package SQL::Translator::Filter::HelloWorld; +package # hide from cpan + SQL::Translator::Filter::HelloWorld; use strict; -use vars qw/$VERSION/; -$VERSION=0.1; sub filter { my ($schema,%args) = (shift,@_);