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
use Pod::Usage;
use SQL::Translator;
+use vars '$VERSION';
+$VERSION = '1.99';
+
#
# Get arguments.
#
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 );
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)?$/ ) {
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,
use Pod::Usage;
use SQL::Translator;
+use vars '$VERSION';
+$VERSION = '1.99';
+
#
# Get arguments.
#
use CGI;
use SQL::Translator;
+use vars '$VERSION';
+$VERSION = '1.99';
+
my $q = CGI->new;
eval {
use strict;
use vars qw/$VERSION/;
-$VERSION=0.1;
+$VERSION = '1.99';
sub filter {
my $schema = shift;
use strict;
use vars qw/$VERSION/;
-$VERSION=0.1;
+$VERSION = '1.99';
sub filter {
my $schema = shift;
use strict;
use vars qw/$VERSION/;
-$VERSION=0.1;
+$VERSION = '1.99';
sub filter {
my $schema = shift;
# ----------------------------------------------------------------------
use strict;
+use vars qw( $VERSION );
+$VERSION = '1.99';
sub parse { "" }
=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;
use strict;
use DBI;
-use vars qw(@EXPORT);
+use vars qw($VERSION @EXPORT);
+$VERSION = '1.99';
use constant DRIVERS => {
mysql => 'MySQL',
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;
# -------------------------------------------------------------------
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;
# -------------------------------------------------------------------
use SQL::Translator::Schema::Field;
use SQL::Translator::Schema::Constraint;
+our $VERSION = '1.99';
+
# -------------------------------------------------------------------
sub parse {
my ( $tr, $dbh ) = @_;
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;
# -------------------------------------------------------------------
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';
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;
# -------------------------------------------------------------------
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';
=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;
=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;
=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;
=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;
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;
=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;
=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;
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;
# -------------------------------------------------------------------
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;
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;
# -------------------------------------------------------------------
use strict;
+use vars qw($VERSION);
+$VERSION = '1.99';
use SQL::Translator::Schema;
use SQL::Translator::Utils qw(header_comment);
# -------------------------------------------------------------------
use strict;
-use vars qw(@EXPORT);
+use vars qw($VERSION @EXPORT);
+$VERSION = '1.99';
use Exporter;
use Text::ParseWords qw(quotewords);
# -------------------------------------------------------------------
use strict;
+use vars qw($VERSION);
+$VERSION = '1.99';
sub produce { "" }
# -------------------------------------------------------------------
use strict;
-use vars qw[ $DEBUG ];
+use vars qw[ $VERSION $DEBUG ];
+$VERSION = '1.99';
$DEBUG = 1 unless defined $DEBUG;
use SQL::Translator::Schema::Constants;
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;
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';
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 => {
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;
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 => {
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;
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';
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:
=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;
=cut
use strict;
+use vars qw[ $VERSION ];
+$VERSION = '1.99';
use SQL::Translator::Schema::Constants;
use SQL::Translator::Utils qw(header_comment);
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);
=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;
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;
=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;
=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;
use strict;
-use vars qw[ @EXPORT_OK ];
+use vars qw[ $VERSION @EXPORT_OK ];
+$VERSION = '1.99';
use Template;
use Data::Dumper;
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;
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;
# -------------------------------------------------------------------
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;
=cut
use strict;
-use vars qw[ @EXPORT_OK ];
+use vars qw[ $VERSION @EXPORT_OK ];
+$VERSION = '1.99';
use Exporter;
use base qw(Exporter);
=cut
use strict;
+use vars qw($VERSION);
+$VERSION = '1.99';
use YAML qw(Dump);
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/);
use strict;
use base qw( Exporter );
-use vars qw( @EXPORT );
+use vars qw( @EXPORT $VERSION );
require Exporter;
+$VERSION = '1.99';
@EXPORT = qw[
CHECK_C
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,
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
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,
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>
use base 'SQL::Translator::Schema::Object';
+use vars qw($VERSION);
+
+$VERSION = '1.99';
+
# ----------------------------------------------------------------------
__PACKAGE__->_attributes( qw/
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
use Carp;
-use vars qw($TABLE_COUNT $VIEW_COUNT);
+use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT);
+
+$VERSION = '1.99';
# ----------------------------------------------------------------------
use base 'SQL::Translator::Schema::Object';
-use vars qw($TABLE_COUNT $VIEW_COUNT);
+use vars qw($VERSION $TABLE_COUNT $VIEW_COUNT);
+
+$VERSION = '1.99';
# ----------------------------------------------------------------------
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
#=============================================================================
# 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,@_);