Renamed SQL table item_mall_transactions to prime_shop_transactions.

This commit is contained in:
MobiusDevelopment 2019-09-18 04:29:01 +00:00
parent 844d19955c
commit de5f9fc41d
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
CREATE TABLE IF NOT EXISTS `item_mall_transactions` (
CREATE TABLE IF NOT EXISTS `prime_shop_transactions` (
`charId` INT UNSIGNED NOT NULL DEFAULT 0,
`productId` INT NOT NULL DEFAULT 0,
`quantity` INT NOT NULL DEFAULT 1,

View File

@ -121,9 +121,9 @@ public class RequestBrBuyProduct implements IClientIncomingPacket
player.sendPacket(new ExBrBuyProduct(ExBrBuyProduct.RESULT_OK));
player.broadcastUserInfo();
// Save transaction info at SQL table item_mall_transactions
// Save transaction info at SQL table prime_shop_transactions
try (Connection con = DatabaseFactory.getConnection();
PreparedStatement statement = con.prepareStatement("INSERT INTO item_mall_transactions (charId, productId, quantity) values (?,?,?)"))
PreparedStatement statement = con.prepareStatement("INSERT INTO prime_shop_transactions (charId, productId, quantity) values (?,?,?)"))
{
statement.setLong(1, player.getObjectId());
statement.setInt(2, product.getProductId());

View File

@ -42,7 +42,7 @@ public class ExBrRecentProductList implements IClientOutgoingPacket
final int playerObj = player.getObjectId();
try (Connection con = DatabaseFactory.getConnection();
PreparedStatement statement = con.prepareStatement("SELECT productId FROM item_mall_transactions WHERE charId=? ORDER BY transactionTime DESC"))
PreparedStatement statement = con.prepareStatement("SELECT productId FROM prime_shop_transactions WHERE charId=? ORDER BY transactionTime DESC"))
{
statement.setInt(1, playerObj);
try (ResultSet rset = statement.executeQuery())