package SQL::Translator::Schema::Constants;
# ----------------------------------------------------------------------
-# $Id: Constants.pm,v 1.3 2003-05-09 17:06:46 kycl4rk Exp $
+# $Id$
# ----------------------------------------------------------------------
-# Copyright (C) 2003 Ken Y. Clark <kclark@cpan.org>
+# 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
=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',
=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
use base qw( Exporter );
use vars qw( @EXPORT $VERSION );
require Exporter;
-$VERSION = (qw$Revision: 1.3 $)[-1];
+$VERSION = sprintf "%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/;
@EXPORT = qw[
CHECK_C
FOREIGN_KEY
FULL_TEXT
+ SPATIAL
NOT_NULL
NORMAL
NULL
use constant FOREIGN_KEY => 'FOREIGN KEY';
-use constant FULL_TEXT => 'FULL_TEXT';
+use constant FULL_TEXT => 'FULLTEXT';
+
+use constant SPATIAL => 'SPATIAL';
use constant NOT_NULL => 'NOT NULL';
1;
+# ----------------------------------------------------------------------
+
=pod
=head1 AUTHOR
-Ken Y. Clark E<lt>kclark@cpan.orgE<gt>
-
-=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 E<lt>kclark@cpan.orgE<gt>.
=cut