Revision history for Perl extension DBIx::Class::Schema::Loader
+0.03002 Tue Jun 6 01:27:25 UTC 2006
+ - rethrow exceptions that occur during make_schema_at
+
0.03001 Mon Jun 5 23:17:57 UTC 2006
- load_from_connection deprecation notice now mentions
upgrading Catalyst::Model::DBIC::Schema if that module
# Always remember to do all digits for the version even if they're 0
# i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports
# brain damage and presumably various other packaging systems too
-our $VERSION = '0.03001';
+our $VERSION = '0.03002';
__PACKAGE__->mk_classaccessor('dump_to_dir');
__PACKAGE__->mk_classaccessor('loader');
$class->loader($impl->new(%{$self->_loader_args}));
$class->loader->load;
-
$self;
}
my ($self) = @_;
my $target_dir = $self->dump_directory;
+ my $schema_class = $self->schema_class;
die "Must specify target directory for dumping!" if ! $target_dir;
- warn "Dumping manual schema to $target_dir ...\n";
+ warn "Dumping manual schema for $schema_class to directory $target_dir ...\n";
if(! -d $target_dir) {
mkdir($target_dir) or die "mkdir('$target_dir') failed: $!";
my $datestr = POSIX::strftime('%Y-%m-%d %H:%M:%S', localtime);
my $tagline = qq|# Created by DBIx::Class::Schema::Loader v$verstr @ $datestr|;
- my $schema_class = $self->schema_class;
$self->_ensure_dump_subdirs($schema_class);
my $schema_fn = $self->_get_dump_filename($schema_class);