Remove all expansion $XX tags (isolated commit, easily revertable)
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Schema / Constants.pm
index 15799df..5625f41 100644 (file)
@@ -1,9 +1,7 @@
 package SQL::Translator::Schema::Constants;
 
 # ----------------------------------------------------------------------
-# $Id: Constants.pm,v 1.1 2003-05-03 04:07:09 kycl4rk Exp $
-# ----------------------------------------------------------------------
-# Copyright (C) 2003 Ken Y. Clark <kclark@cpan.org>
+# 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
@@ -22,11 +20,11 @@ package SQL::Translator::Schema::Constants;
 
 =head1 NAME
 
-SQL::Translator::CMap::Constants - constants module
+SQL::Translator::Schema::Constants - constants module
 
 =head1 SYNOPSIS
 
-  use SQL::Translator::CMap::Constants;
+  use SQL::Translator::Schema::Constants;
 
   $table->add_constraint(
       name => 'foo',
@@ -35,7 +33,27 @@ SQL::Translator::CMap::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,27 +61,49 @@ use strict;
 use base qw( Exporter );
 use vars qw( @EXPORT $VERSION );
 require Exporter;
-$VERSION = (qw$Revision: 1.1 $)[-1];
+$VERSION = '1.99';
 
 @EXPORT = qw[ 
+    CHECK_C
+    FOREIGN_KEY
+    FULL_TEXT
+    SPATIAL
+    NOT_NULL
+    NORMAL
+    NULL
     PRIMARY_KEY
+    UNIQUE
 ];
 
-use constant PRIMARY_KEY => 'primary_key';
+#
+# Because "CHECK" is a Perl keyword
+#
+use constant CHECK_C => 'CHECK';
+
+use constant FOREIGN_KEY => 'FOREIGN KEY';
 
-1;
+use constant FULL_TEXT => 'FULLTEXT';
 
-=pod
+use constant SPATIAL => 'SPATIAL';
 
-=head1 AUTHOR
+use constant NOT_NULL => 'NOT NULL';
 
-Ken Y. Clark E<lt>kclark@cpan.orgE<gt>
+use constant NORMAL => 'NORMAL';
 
-=head1 COPYRIGHT
+use constant NULL => 'NULL';
 
-Copyright (c) 2003
+use constant PRIMARY_KEY => 'PRIMARY KEY';
+
+use constant UNIQUE => 'UNIQUE';
+
+1;
+
+# ----------------------------------------------------------------------
+
+=pod
+
+=head1 AUTHOR
 
-This library is free software;  you can redistribute it and/or modify 
-it under the same terms as Perl itself.
+Ken Y. Clark E<lt>kclark@cpan.orgE<gt>.
 
 =cut