From 4d0efbaff8c07e9864fe2982fb0e620f37df7eac Mon Sep 17 00:00:00 2001 From: marcdeb1 Date: Thu, 11 Oct 2018 07:42:46 +0200 Subject: [PATCH] Changed LatestTransactionTime column name --- sql/lbryexplorer.ddl.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/lbryexplorer.ddl.sql b/sql/lbryexplorer.ddl.sql index d151efb..9285f44 100644 --- a/sql/lbryexplorer.ddl.sql +++ b/sql/lbryexplorer.ddl.sql @@ -163,11 +163,11 @@ CREATE TABLE `TransactionsAddresses` `AddressId` BIGINT UNSIGNED NOT NULL, `DebitAmount` DECIMAL(18,8) DEFAULT 0 NOT NULL COMMENT 'Sum of the inputs to this address for the tx', `CreditAmount` DECIMAL(18,8) DEFAULT 0 NOT NULL COMMENT 'Sum of the outputs to this address for the tx', - `LatestTransactionTime` DATETIME DEFAULT UTC_TIMESTAMP() NOT NULL, + `TransactionTime` DATETIME DEFAULT UTC_TIMESTAMP() NOT NULL, PRIMARY KEY `PK_TransactionAddress` (`TransactionId`, `AddressId`), FOREIGN KEY `Idx_TransactionsAddressesTransaction` (`TransactionId`) REFERENCES `Transactions` (`Id`), FOREIGN KEY `Idx_TransactionsAddressesAddress` (`AddressId`) REFERENCES `Addresses` (`Id`), - INDEX `Idx_TransactionsAddressesLatestTransactionTime` (`LatestTransactionTime`), + INDEX `Idx_TransactionsAddressesTransactionTime` (`TransactionTime`), INDEX `Idx_TransactionsAddressesDebit` (`DebitAmount`), INDEX `Idx_TransactionsAddressesCredit` (`CreditAmount`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;