X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FSchema%2FConstants.pm;h=e03027fe6e51573aa9e3c65afa16dfbc5ed3baf4;hb=ba506e52c480afe33dfec6b38a12759fad1e7fa2;hp=07ed9797cad0232fe3525690ea6c014eb63237ad;hpb=8a12b90b8b8d05801dba4c81ac7f913a3b8bc98d;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Schema/Constants.pm b/lib/SQL/Translator/Schema/Constants.pm index 07ed979..e03027f 100644 --- a/lib/SQL/Translator/Schema/Constants.pm +++ b/lib/SQL/Translator/Schema/Constants.pm @@ -1,9 +1,7 @@ package SQL::Translator::Schema::Constants; # ---------------------------------------------------------------------- -# $Id: Constants.pm,v 1.41 2003-11-07 16:53:31 kycl4rk Exp $ -# ---------------------------------------------------------------------- -# Copyright (C) 2003 Ken Y. Clark +# Copyright (C) 2002-2009 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 +33,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 +61,13 @@ use strict; use base qw( Exporter ); use vars qw( @EXPORT $VERSION ); require Exporter; -$VERSION = sprintf "%d.%02d", q$Revision: 1.41 $ =~ /(\d+)\.(\d+)/; +$VERSION = '1.60'; @EXPORT = qw[ CHECK_C FOREIGN_KEY FULL_TEXT + SPATIAL NOT_NULL NORMAL NULL @@ -65,6 +84,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 +98,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 Youens-Clark Ekclark@cpan.orgE. =cut