# vim: sw=4: ts=4:
# ----------------------------------------------------------------------
-# $Id: Schema.pm,v 1.25 2006-05-13 01:21:21 kycl4rk Exp $
+# $Id: Schema.pm,v 1.26 2006-06-07 16:43:41 schiffbruechige Exp $
# ----------------------------------------------------------------------
# Copyright (C) 2002-4 SQLFairy Authors
#
use base 'SQL::Translator::Schema::Object';
use vars qw[ $VERSION $TABLE_ORDER $VIEW_ORDER $TRIGGER_ORDER $PROC_ORDER ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.25 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.26 $ =~ /(\d+)\.(\d+)/;
__PACKAGE__->_attributes(qw/name database translator/);
}
$trigger->order( ++$TRIGGER_ORDER );
- my $trigger_name = $trigger->name or return $self->error('No trigger name');
+ my $trigger_name = $trigger->name or return $self->error('No trigger name');
if ( defined $self->{'triggers'}{$trigger_name} ) {
return $self->error(qq[Can't create trigger: "$trigger_name" exists]);
}
package SQL::Translator::Schema::Object;
# ----------------------------------------------------------------------
-# $Id: Object.pm,v 1.7 2005-08-10 16:34:47 duality72 Exp $
+# $Id: Object.pm,v 1.8 2006-06-07 16:43:41 schiffbruechige Exp $
# ----------------------------------------------------------------------
# Copyright (C) 2002-4 SQLFairy Authors
#
use vars qw[ $VERSION ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.8 $ =~ /(\d+)\.(\d+)/;
=head1 Construction
-Derived classes should decalare their attributes using the C<_attributes>
+Derived classes should declare their attributes using the C<_attributes>
method. They can then inherit the C<init> method from here which will call
accessors of the same name for any values given in the hash passed to C<new>.
Note that you will have to impliment the accessors your self and we expect perl