[Dbix-class] Improving Schema::Loader's dump_overwrite behaviour

Nilson Santos Figueiredo Junior acid06 at gmail.com
Tue Jul 18 07:35:03 CEST 2006


Attached you'll find a patch which changes dump_overwrite behaviour so
that when it's false (i.e. it shouldn't overwrite files), instead
throwing an exception when an already existing file is found, it
merely warns and skips it.

This is rather useful when you're e.g. adding new tables to an
existing Catalyst application and want to use the Helper with
"create=static" for code generation.

The patch fixes one test case so that it complies with this new
behaviour (thus, Test::Warn was added as a build dependency). It also
changes two or three words on the docs reflecting the change.

-Nilson Santos F. Jr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: improved-dump_overwrite.patch
Type: application/octet-stream
Size: 3811 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060718/2b8b94c8/attachment.obj 


More information about the Dbix-class mailing list