add PrimaryKey and ForeignKey classes
[dbsrgits/SQL-Translator-2.0-ish.git] / lib / SQL / Translator / Object / Constraint.pm
index 525a529..992d414 100644 (file)
@@ -29,7 +29,7 @@ has 'columns' => (
             }
         }
     },
-    required => 1
+    default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
 );
 
 has 'type' => (