Replace sectioned links with C<> formatting
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Filter / Globals.pm
index abf5a43..f4de7fa 100644 (file)
@@ -1,25 +1,5 @@
 package SQL::Translator::Filter::Globals;
 
-# -------------------------------------------------------------------
-# $Id: Globals.pm,v 1.2 2006-03-10 15:04:12 grommit Exp $
-# -------------------------------------------------------------------
-# Copyright (C) 2002-4 SQLFairy Authors
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; version 2.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-# 02111-1307  USA
-# -------------------------------------------------------------------
-
 =head1 NAME
 
 SQL::Translator::Filter::Globals - Add global fields and indices to all tables.
@@ -41,7 +21,7 @@ SQL::Translator::Filter::Globals - Add global fields and indices to all tables.
                 }
             ],
             indices => [
-                { 
+                {
                     fields => 'modifed',
                 },
             ]
@@ -57,8 +37,8 @@ SQL::Translator::Filter::Globals - Add global fields and indices to all tables.
 =cut
 
 use strict;
-use vars qw/$VERSION/;
-$VERSION=0.1;
+use warnings;
+our $VERSION = '1.59';
 
 sub filter {
     my $schema = shift;
@@ -99,6 +79,7 @@ sub filter {
                 type    => $_->type,
                 fields  => [$_->fields],
                 options => [$_->options],
+                extra   => scalar($_->extra),
             };
         }
 
@@ -116,13 +97,14 @@ sub filter {
                 reference_table  => $_->reference_table,
                 table            => $_->table,
                 type             => $_->type,
+                extra            => scalar($_->extra),
             };
         }
 
         $schema->drop_table($gtbl);
     }
 
-    # Add globalis to tables
+    # Add globals to tables
     foreach my $tbl ( $schema->get_tables ) {
 
         foreach my $new_fld ( @global_fields ) {
@@ -165,7 +147,7 @@ filter.
 
 =head1 SEE ALSO
 
-L<perl(1)>, L<SQL::Translator>
+C<perl(1)>, L<SQL::Translator>
 
 =head1 BUGS