X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FSchema%2FConstants.pm;h=4f0225090e8fe3c673a4a12566c028aaaca64d4d;hb=821a0fde221f5accf93e3f65efa77b5a6733cb5e;hp=6149da7eb12870a394c8394d235ea01c27e761e7;hpb=79dbb3a4c144a8a94606fae2686f563aa5492a6e;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Schema/Constants.pm b/lib/SQL/Translator/Schema/Constants.pm index 6149da7..4f02250 100644 --- a/lib/SQL/Translator/Schema/Constants.pm +++ b/lib/SQL/Translator/Schema/Constants.pm @@ -1,9 +1,9 @@ package SQL::Translator::Schema::Constants; # ---------------------------------------------------------------------- -# $Id: Constants.pm,v 1.6 2003-10-08 16:03:01 kycl4rk Exp $ +# $Id$ # ---------------------------------------------------------------------- -# Copyright (C) 2003 Ken Y. Clark +# 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 @@ -35,7 +35,27 @@ SQL::Translator::Schema::Constants - constants module =head1 DESCRIPTION -This module exports a several constants to like "primary key," etc. +This module exports the following constants for Schema features; + +=over 4 + +=item CHECK_C + +=item FOREIGN_KEY + +=item FULL_TEXT + +=item NOT_NULL + +=item NORMAL + +=item NULL + +=item PRIMARY_KEY + +=item UNIQUE + +=back =cut @@ -43,12 +63,13 @@ use strict; use base qw( Exporter ); use vars qw( @EXPORT $VERSION ); require Exporter; -$VERSION = sprintf "%d.%02d", q$Revision: 1.6 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/; @EXPORT = qw[ CHECK_C FOREIGN_KEY FULL_TEXT + SPATIAL NOT_NULL NORMAL NULL @@ -65,6 +86,8 @@ use constant FOREIGN_KEY => 'FOREIGN KEY'; use constant FULL_TEXT => 'FULLTEXT'; +use constant SPATIAL => 'SPATIAL'; + use constant NOT_NULL => 'NOT NULL'; use constant NORMAL => 'NORMAL'; @@ -77,17 +100,12 @@ use constant UNIQUE => 'UNIQUE'; 1; +# ---------------------------------------------------------------------- + =pod =head1 AUTHOR -Ken Y. Clark Ekclark@cpan.orgE - -=head1 COPYRIGHT - -Copyright (c) 2003 - -This library is free software; you can redistribute it and/or modify -it under the same terms as Perl itself. +Ken Y. Clark Ekclark@cpan.orgE. =cut