projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3cece3
)
output SQL statements as we run them (and only the ones we run), not immediately
author
ivan
<ivan>
Tue, 29 Dec 2009 04:49:01 +0000
(
04:49
+0000)
committer
ivan
<ivan>
Tue, 29 Dec 2009 04:49:01 +0000
(
04:49
+0000)
FS/bin/freeside-upgrade
patch
|
blob
|
history
diff --git
a/FS/bin/freeside-upgrade
b/FS/bin/freeside-upgrade
index
5f9b0f7
..
49f1df8
100755
(executable)
--- a/
FS/bin/freeside-upgrade
+++ b/
FS/bin/freeside-upgrade
@@
-41,9
+41,9
@@
reload_dbdef($dbdef_file);
warn "Upgrade startup completed in ". (time-$start). " seconds\n"; # if $DEBUG;
$start = time;
warn "Upgrade startup completed in ". (time-$start). " seconds\n"; # if $DEBUG;
$start = time;
-$DBIx::DBSchema::DEBUG = $DEBUG;
-$DBIx::DBSchema::Table::DEBUG = $DEBUG;
-$DBIx::DBSchema::Index::DEBUG = $DEBUG;
+
#
$DBIx::DBSchema::DEBUG = $DEBUG;
+
#
$DBIx::DBSchema::Table::DEBUG = $DEBUG;
+
#
$DBIx::DBSchema::Index::DEBUG = $DEBUG;
my @bugfix = ();
my @bugfix = ();
@@
-77,6
+77,7
@@
if ( $DRY_RUN ) {
exit;
} else {
foreach my $statement ( @bugfix, @statements ) {
exit;
} else {
foreach my $statement ( @bugfix, @statements ) {
+ warn "$statement\n";
$dbh->do( $statement )
or die "Error: ". $dbh->errstr. "\n executing: $statement";
}
$dbh->do( $statement )
or die "Error: ". $dbh->errstr. "\n executing: $statement";
}