From cf86eb3672bf2ac12ceb639ac9a2e85fbb25dc5e Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Sat, 16 Jun 2018 23:40:52 -0500 Subject: [PATCH] server: Add address index to transaction_inputs and transaction_outputs This is useful to retrieve transactions by address from the database, part of #18. --- server/conf/evolutions/default/6.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/conf/evolutions/default/6.sql diff --git a/server/conf/evolutions/default/6.sql b/server/conf/evolutions/default/6.sql new file mode 100644 index 0000000..d9a0e72 --- /dev/null +++ b/server/conf/evolutions/default/6.sql @@ -0,0 +1,13 @@ + +# --- !Ups + +CREATE INDEX transaction_inputs_address_index ON transaction_inputs (address); + +CREATE INDEX transaction_outputs_address_index ON transaction_outputs (address); + + +# --- !Downs + +DROP INDEX transaction_outputs_address_index; + +DROP INDEX transaction_inputs_address_index;