From 1f187a053dce5868aa182fab0ffe312a1f202bbb Mon Sep 17 00:00:00 2001 From: Marcin Ickiewicz <mickiewicz@syncad.com> Date: Thu, 15 Oct 2020 13:41:02 +0200 Subject: [PATCH] deterministic order of saved mentions --- hive/db/sql_scripts/update_hive_posts_mentions.sql | 1 + tests/tests_api | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hive/db/sql_scripts/update_hive_posts_mentions.sql b/hive/db/sql_scripts/update_hive_posts_mentions.sql index c88998e8d..2cbea76e6 100644 --- a/hive/db/sql_scripts/update_hive_posts_mentions.sql +++ b/hive/db/sql_scripts/update_hive_posts_mentions.sql @@ -30,6 +30,7 @@ BEGIN )T( id_post, mention, author_id, block_num ) )T( id_post, mention, author_id, block_num ) ON ha.name = T.mention WHERE ha.id != T.author_id + ORDER BY T.id_post ON CONFLICT DO NOTHING; END diff --git a/tests/tests_api b/tests/tests_api index e1439046a..ee534480e 160000 --- a/tests/tests_api +++ b/tests/tests_api @@ -1 +1 @@ -Subproject commit e1439046adf7900ba3d6cbaeb5615d4dc6c837b5 +Subproject commit ee534480e5739b75968089859ee3663dfdabb126 -- GitLab