[Jifty-commit] r6332 - jifty/trunk/lib/Jifty/Script
Jifty commits
jifty-commit at lists.jifty.org
Tue Feb 10 20:16:39 EST 2009
Author: sunnavy
Date: Tue Feb 10 20:16:39 2009
New Revision: 6332
Modified:
jifty/trunk/lib/Jifty/Script/Schema.pm
Log:
regex improvement for the database does not exist error
Modified: jifty/trunk/lib/Jifty/Script/Schema.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Script/Schema.pm (original)
+++ jifty/trunk/lib/Jifty/Script/Schema.pm Tue Feb 10 20:16:39 2009
@@ -689,7 +689,7 @@
if ( $self->{'drop_database'} ) {
my $ret = $handle->drop_database('execute');
die "Error dropping database: ". $ret->error_message
- unless $ret or $ret->error_message =~ /(database .*? does not exist|unknown database)/i;
+ unless $ret or $ret->error_message =~ /database .*?(?:does not|doesn't) exist|unknown database/i;
}
if ( $self->{'create_database'} ) {
More information about the Jifty-commit
mailing list