From: Ken Youens-Clark Date: Fri, 9 May 2003 17:06:46 +0000 (+0000) Subject: Playing with constants. X-Git-Tag: v0.02~125 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8ff0b2bca4e3a92895382b9831ccad58d19e2af1;p=dbsrgits%2FSQL-Translator.git Playing with constants. --- diff --git a/lib/SQL/Translator/Schema/Constants.pm b/lib/SQL/Translator/Schema/Constants.pm index 5caf975..06640ce 100644 --- a/lib/SQL/Translator/Schema/Constants.pm +++ b/lib/SQL/Translator/Schema/Constants.pm @@ -1,7 +1,7 @@ package SQL::Translator::Schema::Constants; # ---------------------------------------------------------------------- -# $Id: Constants.pm,v 1.2 2003-05-05 04:32:39 kycl4rk Exp $ +# $Id: Constants.pm,v 1.3 2003-05-09 17:06:46 kycl4rk Exp $ # ---------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark # @@ -43,12 +43,14 @@ use strict; use base qw( Exporter ); use vars qw( @EXPORT $VERSION ); require Exporter; -$VERSION = (qw$Revision: 1.2 $)[-1]; +$VERSION = (qw$Revision: 1.3 $)[-1]; @EXPORT = qw[ CHECK_C FOREIGN_KEY + FULL_TEXT NOT_NULL + NORMAL NULL PRIMARY_KEY UNIQUE @@ -59,13 +61,17 @@ $VERSION = (qw$Revision: 1.2 $)[-1]; # use constant CHECK_C => 'CHECK'; -use constant FOREIGN_KEY => 'FOREIGN_KEY'; +use constant FOREIGN_KEY => 'FOREIGN KEY'; -use constant NOT_NULL => 'NOT_NULL'; +use constant FULL_TEXT => 'FULL_TEXT'; + +use constant NOT_NULL => 'NOT NULL'; + +use constant NORMAL => 'NORMAL'; use constant NULL => 'NULL'; -use constant PRIMARY_KEY => 'PRIMARY_KEY'; +use constant PRIMARY_KEY => 'PRIMARY KEY'; use constant UNIQUE => 'UNIQUE';