X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FFilter%2FGlobals.pm;h=a3d3c4a0780f0cd9d3abb24833f44a933a34fd49;hb=ba506e52c480afe33dfec6b38a12759fad1e7fa2;hp=3c6902d0565298763d140d357d36703ac5cc6901;hpb=478f608d9028508396da37bb5df10b3057b96981;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Filter/Globals.pm b/lib/SQL/Translator/Filter/Globals.pm index 3c6902d..a3d3c4a 100644 --- a/lib/SQL/Translator/Filter/Globals.pm +++ b/lib/SQL/Translator/Filter/Globals.pm @@ -1,8 +1,6 @@ package SQL::Translator::Filter::Globals; # ------------------------------------------------------------------- -# $Id$ -# ------------------------------------------------------------------- # Copyright (C) 2002-2009 SQLFairy Authors # # This program is free software; you can redistribute it and/or @@ -58,7 +56,7 @@ SQL::Translator::Filter::Globals - Add global fields and indices to all tables. use strict; use vars qw/$VERSION/; -$VERSION=0.1; +$VERSION = '1.60'; sub filter { my $schema = shift; @@ -149,21 +147,22 @@ __END__ =head1 DESCRIPTION -Adds global fields, indices and constraints to all tables in the schema. -The globals to add can either be defined in the filter args or using a _GLOBAL_ -table (see below). +Adds global fields, indices and constraints to all tables in the +schema. The globals to add can either be defined in the filter args +or using a _GLOBAL_ table (see below). -If a table already contains a field with the same name as a global then it is -skipped for that table. +If a table already contains a field with the same name as a global +then it is skipped for that table. =head2 The _GLOBAL_ Table -An alternative to using the args is to add a table called C<_GLOBAL_> to the -schema and then just use the filter. Any fields and indices defined on this table -will be added to all the tables in the schema and the _GLOBAL_ table removed. +An alternative to using the args is to add a table called C<_GLOBAL_> +to the schema and then just use the filter. Any fields and indices +defined on this table will be added to all the tables in the schema +and the _GLOBAL_ table removed. -The name of the global can be changed using a C arg to the -filter. +The name of the global can be changed using a C arg to +the filter. =head1 SEE ALSO @@ -171,16 +170,16 @@ L, L =head1 BUGS -Will generate duplicate indices if an index already exists on a table the same -as one added globally. - -Will generate duplicate constraints if a constraint already exists on a table +Will generate duplicate indices if an index already exists on a table the same as one added globally. +Will generate duplicate constraints if a constraint already exists on +a table the same as one added globally. + =head1 TODO -Some extra data values that can be used to control the global addition. e.g. -'skip_global'. +Some extra data values that can be used to control the global +addition. e.g. 'skip_global'. =head1 AUTHOR