make PrimaryKey an Index and Constraint
Justin Hunter [Tue, 11 Aug 2009 02:52:15 +0000 (19:52 -0700)]
lib/SQL/Translator/Object/PrimaryKey.pm

index 490786c..240d71a 100644 (file)
@@ -1,8 +1,8 @@
 use MooseX::Declare;
 class SQL::Translator::Object::PrimaryKey {
-    extends 'SQL::Translator::Object::Index';
+    extends qw(SQL::Translator::Object::Index SQL::Translator::Object::Constraint);
 
     has '+type' => (
-        default => 'PRIMARY_KEY',
+        default => 'PRIMARY KEY',
     );
 }