mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
@@ -1314,7 +1314,9 @@ CassandraBackend::open(bool readOnly)
|
||||
<< " taxon bigint,"
|
||||
<< " token_id blob,"
|
||||
<< " PRIMARY KEY (issuer, taxon, token_id)"
|
||||
<< " )";
|
||||
<< " )"
|
||||
<< " WITH CLUSTERING ORDER BY (taxon ASC, token_id ASC)"
|
||||
<< " AND default_time_to_live = " << ttl;
|
||||
if (!executeSimpleStatement(query.str()))
|
||||
continue;
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ CREATE TABLE clio.issuer_nf_tokens_v2 (
|
||||
taxon bigint, # The NFT's token taxon
|
||||
token_id blob, # The NFT's ID
|
||||
PRIMARY KEY (issuer, taxon, token_id)
|
||||
)
|
||||
) WITH CLUSTERING ORDER BY (taxon ASC, token_id ASC) ...
|
||||
```
|
||||
This table indexes token IDs against their issuer and issuer/taxon
|
||||
combination. This is useful for determining all the NFTs a specific account
|
||||
|
||||
@@ -221,8 +221,11 @@ public:
|
||||
token_id blob,
|
||||
PRIMARY KEY (issuer, taxon, token_id)
|
||||
)
|
||||
WITH CLUSTERING ORDER BY (taxon ASC, token_id ASC)
|
||||
AND default_time_to_live = {}
|
||||
)",
|
||||
qualifiedTableName(settingsProvider_.get(), "issuer_nf_tokens_v2")));
|
||||
qualifiedTableName(settingsProvider_.get(), "issuer_nf_tokens_v2"),
|
||||
settingsProvider_.get().getTtl()));
|
||||
|
||||
statements.emplace_back(fmt::format(
|
||||
R"(
|
||||
|
||||
Reference in New Issue
Block a user