Subject: | add dump_dont_add_dumpdate |
DBIC::Schema::Loader updates dumpdate when re-run then Loader.
But this feature makes difference from before version at svn for all
packages, when I want to update only one schema.This feature daub the
svn repos.
please the one more option for to avoid this feature.
--- lib/DBIx/Class/Schema/Loader/Base.pm.org 2007-07-27
14:24:40.044282418 +0900
+++ lib/DBIx/Class/Schema/Loader/Base.pm 2007-07-27
14:25:31.254484992 +0900
@@ -33,6 +33,7 @@
inflect_plural
debug
dump_directory
+ dump_dont_add_dumpdate
dump_overwrite
really_erase_my_files
@@ -480,14 +481,14 @@
$text .= qq|\n\n# Created by DBIx::Class::Schema::Loader|
. qq| v| . $DBIx::Class::Schema::Loader::VERSION
- . q| @ | . POSIX::strftime('%Y-%m-%d %H:%M:%S', localtime)
+ . ($self->dump_dont_add_dumpdate ? '' : q| @ | .
POSIX::strftime('%Y-%m-%d %H:%M:%S', localtime))
. qq|\n# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:|;
open(my $fh, '>', $filename)
or croak "Cannot open '$filename' for writing: $!";
# Write the top half and its MD5 sum
- print $fh $text . Digest::MD5::md5_base64($text) . "\n\n";
+ print $fh $text . Digest::MD5::md5_base64($text) . "\n";
# Write out anything loaded via external partial class file in @INC
print $fh qq|$_\n|