From 6827c31b07d39bf4de9e4d419aa1c9f95520aa3c Mon Sep 17 00:00:00 2001 From: halaprix Date: Thu, 27 Oct 2022 13:43:31 +0200 Subject: [PATCH] add historic blocks view --- src/borrow/migrations/044-historic-blocks.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/borrow/migrations/044-historic-blocks.sql diff --git a/src/borrow/migrations/044-historic-blocks.sql b/src/borrow/migrations/044-historic-blocks.sql new file mode 100644 index 0000000..ea11b86 --- /dev/null +++ b/src/borrow/migrations/044-historic-blocks.sql @@ -0,0 +1,6 @@ +CREATE VIEW api.historic_block AS +SELECT b.number, + b.hash, + b.timestamp +FROM vulcan2x.block b +ORDER BY b.timestamp desc; \ No newline at end of file