fixed transactions lost during 7.5.11 upgrade

This commit is contained in:
JT Smith 2008-07-08 20:24:19 +00:00
parent 823c0af44f
commit 44a036e095
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,6 @@
7.5.16
- Created a migration from 7.4.40 directly to 7.5.16.
- fixed: transactions lost during 7.5.11 upgrade
- fixed: More permissive DSN checking to allow use of SQLite (thanks pathma)
- fixed: Project manager modal dialog doesn't work in some instances.
- fixed: Syndicated Content doesn't always decode text properly

View file

@ -942,6 +942,7 @@ sub convertTransactionLog {
$status = 'NotShipped' if $status eq 'NotSent';
$db->setRow("transactionItem","itemId",{
itemId => "new",
assetId => $oldItem->{itemId},
transactionId => $oldItem->{transactionId},
configuredTitle => $oldItem->{itemName},
options => '{}',
@ -951,7 +952,7 @@ sub convertTransactionLog {
quantity => $oldItem->{quantity},
price => $oldItem->{amount},
vendorId => "defaultvendor000000000",
}, $oldItem->{itemId});
});
}
}
my $driverId = $db->quickScalar("select paymentGatewayId from paymentGateway where className='WebGUI::Shop::PayDriver::ITransact'");

View file

@ -829,6 +829,7 @@ sub convertTransactionLog {
$status = 'NotShipped' if $status eq 'NotSent';
$db->setRow("transactionItem","itemId",{
itemId => "new",
assetId => $oldItem->{itemId},
transactionId => $oldItem->{transactionId},
configuredTitle => $oldItem->{itemName},
options => '{}',
@ -838,7 +839,7 @@ sub convertTransactionLog {
quantity => $oldItem->{quantity},
price => $oldItem->{amount},
vendorId => "defaultvendor000000000",
}, $oldItem->{itemId});
});
}
}
$db->write("drop table oldtransaction");