X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FParser%2FDBIx%2FClass.pm;h=97e333cf336bf9010bfa3fbdef24b1807c0f98db;hb=6d0ee587eb31c41e28a432de3caf261a66b4c2ca;hp=886c61cd8ee2e1405285cf719490fe038ee3a0e9;hpb=a99b214b906c4077b17a1c104581d20d2cba6a0b;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index 886c61c..97e333c 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -13,7 +13,6 @@ $VERSION = '1.10'; $DEBUG = 0 unless defined $DEBUG; use Exporter; -use Data::Dumper; use SQL::Translator::Utils qw(debug normalize_name); use base qw(Exporter); @@ -114,7 +113,7 @@ sub parse { my @primary = $source->primary_columns; my %unique_constraints = $source->unique_constraints; foreach my $uniq (sort keys %unique_constraints) { - if (!$source->compare_relationship_keys($unique_constraints{$uniq}, \@primary)) { + if (!$source->_compare_relationship_keys($unique_constraints{$uniq}, \@primary)) { $table->add_constraint( type => 'unique', name => $uniq, @@ -168,7 +167,7 @@ sub parse { # this is supposed to indicate a has_one/might_have... # where's the introspection!!?? :) else { - $fk_constraint = not $source->compare_relationship_keys(\@keys, \@primary); + $fk_constraint = not $source->_compare_relationship_keys(\@keys, \@primary); } my $cascade; @@ -293,14 +292,14 @@ C reads a DBIx::Class schema, interrogates the columns, and stuffs it all in an $sqlt_schema object. It's primary use is in deploying database layouts described as a set -of L classes, to a database. To do this, see the -L method. +of L classes, to a database. To do this, see +L. This can also be achieved by having DBIx::Class export the schema as a set of SQL files ready for import into your database, or passed to other machines that need to have your application installed but don't -have SQL::Translator installed. To do this see the -L method. +have SQL::Translator installed. To do this see +L. =head1 SEE ALSO