X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FFilter%2FDefaultExtra.pm;h=dcef12e2597fee5128e90e08b9a84dd888839a25;hb=4578e784e55a6c309e28747745b3bc628bf77036;hp=7766b2e17cda3a295d91c089d4b99821a2d94cc5;hpb=6cedfc23b6ba0390722dfeb2e7854b4ea36ae12b;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Filter/DefaultExtra.pm b/lib/SQL/Translator/Filter/DefaultExtra.pm index 7766b2e..dcef12e 100644 --- a/lib/SQL/Translator/Filter/DefaultExtra.pm +++ b/lib/SQL/Translator/Filter/DefaultExtra.pm @@ -1,25 +1,5 @@ package SQL::Translator::Filter::DefaultExtra; -# ------------------------------------------------------------------- -# $Id: DefaultExtra.pm,v 1.1 2005-12-16 10:25:00 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::DefaultExtra - Set default extra data values for schema @@ -35,7 +15,7 @@ objects. filters => [ DefaultExtra => { # XXX - These should really be ordered - + # Default widget for fields to basic text edit. 'field.widget' => 'text', # idea: @@ -44,7 +24,7 @@ objects. # Default label (human formated name) for fields and tables 'field.label' => '=ucfirst($name)', 'table.label' => '=ucfirst($name)', - }, + }, ], ) || die "SQLFairy error : ".SQL::Translator->error; my $sql = $sqlt->translate || die "SQLFairy error : ".$sqlt->error; @@ -52,8 +32,8 @@ objects. =cut use strict; -use vars qw/$VERSION/; -$VERSION=0.1; +use warnings; +our $VERSION = '1.59'; sub filter { my $schema = shift; @@ -87,12 +67,6 @@ if you want to set lots of things, use lots of filters! =head1 SEE ALSO -L, L - -=head1 BUGS - -=head1 TODO - -=head1 AUTHOR +C, L =cut