diff options
author | ivan <ivan> | 2009-06-10 03:00:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-06-10 03:00:08 +0000 |
commit | 121b02fd16385ae08338a7be911eef18598280a5 (patch) | |
tree | 2bf1f15c826afa278cf69e9f29aec5fe1c6566ee /FS | |
parent | 40a1170d519ad54a029c8306881a06c56cd9506a (diff) |
don't attempt to create h_queue indices, for SG upgradability
Diffstat (limited to 'FS')
-rwxr-xr-x | FS/bin/freeside-upgrade | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/FS/bin/freeside-upgrade b/FS/bin/freeside-upgrade index 97babbd68..43cebd940 100755 --- a/FS/bin/freeside-upgrade +++ b/FS/bin/freeside-upgrade @@ -60,20 +60,24 @@ if (dbdef->table('cust_main')->column('agent_custid') && ! $opt_s) { #from 1.3 to 1.4... if not, it needs to be hooked into -upgrade here or #you'll lose all the part_svc settings it migrates to part_svc_column +my @statements = + grep { $_ !~ /^CREATE +INDEX +h_queue/ } #useless, holds up queue insertion + dbdef->sql_update_schema( dbdef_dist(datasrc), $dbh ) + if ( $DRY_RUN ) { print - join(";\n", @bugfix, dbdef->sql_update_schema( dbdef_dist(datasrc), $dbh ) ). ";\n"; + join(";\n", @bugfix, @statements ). ";\n"; exit; } else { - foreach my $statement ( @bugfix ) { + foreach my $statement ( @bugfix, @statements ) { $dbh->do( $statement ) or die "Error: ". $dbh->errstr. "\n executing: $statement"; } - warn "Pre-schema change upgrades completed in ". (time-$start). " seconds\n"; # if $DEBUG; - $start = time; +# warn "Pre-schema change upgrades completed in ". (time-$start). " seconds\n"; # if $DEBUG; +# $start = time; - dbdef->update_schema( dbdef_dist(datasrc), $dbh ); +# dbdef->update_schema( dbdef_dist(datasrc), $dbh ); } warn "Schema upgrade completed in ". (time-$start). " seconds\n"; # if $DEBUG; |