Skip to content
Snippets Groups Projects
Commit ed746fea authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix: Add more indexed columns, in the TX table

parent 4b7df82e
No related branches found
No related tags found
1 merge request!1430fix(1444): Create index only if marked as indexed - close #1444
......@@ -18,22 +18,22 @@ export class SqliteTransactions extends SqliteTable<DBTx> implements TxsDAO {
"txs",
{
hash: new SqlNotNullableFieldDefinition("VARCHAR", true, 70),
block_number: new SqlNullableFieldDefinition("INT", true),
block_number: new SqlNullableFieldDefinition("INT", true /*need by getTxHistoryByPubkeyBetweenBlocks() */),
locktime: new SqlNullableFieldDefinition("INT", false),
version: new SqlNullableFieldDefinition("INT", false),
currency: new SqlNullableFieldDefinition("VARCHAR", false, 10),
comment: new SqlNullableFieldDefinition("TEXT", false),
blockstamp: new SqlNullableFieldDefinition("VARCHAR", false, 100),
blockstampTime: new SqlNullableFieldDefinition("INT", false),
time: new SqlNullableFieldDefinition("INT", false),
blockstamp: new SqlNullableFieldDefinition("VARCHAR", true /* need by getWrittenOn() */, 100),
blockstampTime: new SqlNullableFieldDefinition("INT", true /* need by trimExpiredNonWrittenTxs() */),
time: new SqlNullableFieldDefinition("INT", true /*need by getTxHistoryByPubkeyBetweenTimes() */ ),
inputs: new SqlNullableFieldDefinition("JSON", false),
unlocks: new SqlNullableFieldDefinition("JSON", false),
outputs: new SqlNullableFieldDefinition("JSON", false),
issuers: new SqlNullableFieldDefinition("JSON", false),
signatures: new SqlNullableFieldDefinition("JSON", false),
recipients: new SqlNullableFieldDefinition("JSON", false),
written: new SqlNotNullableFieldDefinition("BOOLEAN", true),
removed: new SqlNotNullableFieldDefinition("BOOLEAN", true),
written: new SqlNotNullableFieldDefinition("BOOLEAN", true /* need by getTxHistoryMempool() */),
removed: new SqlNotNullableFieldDefinition("BOOLEAN", true /* need by getSandboxTs() */),
received: new SqlNullableFieldDefinition("BOOLEAN", false),
output_base: new SqlNullableFieldDefinition("INT", false),
output_amount: new SqlNullableFieldDefinition("INT", false),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment