From 7e56a27212355264aafca4b1ac87bd52090aa157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Sun, 28 Nov 2021 22:33:47 +0000 Subject: [PATCH] fix: load dummy data script --- test/stress/load-tx-dummy-data.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/stress/load-tx-dummy-data.js b/test/stress/load-tx-dummy-data.js index ed067f3a..69021b2c 100644 --- a/test/stress/load-tx-dummy-data.js +++ b/test/stress/load-tx-dummy-data.js @@ -17,7 +17,8 @@ const loadDummyTxData = () => { i::integer, 'EUR', null, null, null, null, now() - random() * INTERVAL '2 days', random() > 0.5, random() > 0.5, random() > 0.5, now() - random() * INTERVAL '2 days', null, random() > 0.5, random() > 0.5, i::integer, i::integer, 1, '99ac9999-9999-99e9-9999-9f99a9999999', - 6, random() > 0.5, random() * (0.9-0.1) + 0.1::int, i::integer, random() > 0.5, null, null + 6, random() > 0.5, random() * (0.9-0.1) + 0.1::int, i::integer, random() > 0.5, null, null, false, + null, null, null FROM generate_series(1, 5000000) as t(i); INSERT INTO cash_out_txs @@ -26,7 +27,7 @@ const loadDummyTxData = () => { null, null, now() - random() * INTERVAL '2 days', now() - random() * INTERVAL '2 days', null, random() > 0.5, random() > 0.5, random() > 0.5, 0, 1, 20, 50, null, '99ac9999-9999-99e9-9999-9f99a9999999', random() * (40-1) + 1::int, now() - random() * INTERVAL '2 days', random() > 0.5, null, - random() * (0.9-0.1) + 0.1::int, i::integer, i::integer, null + random() * (0.9-0.1) + 0.1::int, i::integer, i::integer, null, null, null, null, null, null, null, null FROM generate_series(1, 5000000) as t(i); INSERT INTO logs