issue #89: net_votes and total_votes are calculated during sync
Compare changes
Files
4@@ -15,7 +15,7 @@ BEGIN
@@ -15,7 +15,7 @@ BEGIN
@@ -31,13 +31,13 @@ IF NOT EXISTS(SELECT data_type
@@ -31,13 +31,13 @@ IF NOT EXISTS(SELECT data_type
@@ -187,7 +187,32 @@ IF EXISTS(SELECT data_type FROM information_schema.columns
@@ -187,7 +187,32 @@ IF EXISTS(SELECT data_type FROM information_schema.columns
RAISE NOTICE 'SKIPPING hive_posts upgrade - adding a block_num_created column, type change for abs_rshares/vote_rshares columns';
@@ -200,7 +225,7 @@ DROP INDEX IF EXISTS hive_mentions_post_id_idx;
@@ -200,7 +225,7 @@ DROP INDEX IF EXISTS hive_mentions_post_id_idx;
where not exists (select null from hive_db_patch_level where patched_to_revision = '033619277eccea70118a5b8dc0c73b913da0025f')
@@ -228,13 +253,13 @@ IF NOT EXISTS(SELECT data_type
@@ -228,13 +253,13 @@ IF NOT EXISTS(SELECT data_type
@@ -245,7 +270,7 @@ $BODY$;
@@ -245,7 +270,7 @@ $BODY$;
--- 4cdf5d19f6cfcb73d3fa504cac9467c4df31c02e - https://gitlab.syncad.com/hive/hivemind/-/merge_requests/295
--- 9e126e9d762755f2b9a0fd68f076c9af6bb73b76 - https://gitlab.syncad.com/hive/hivemind/-/merge_requests/314 mentions fix
where not exists (select null from hive_db_patch_level where patched_to_revision = '9e126e9d762755f2b9a0fd68f076c9af6bb73b76' )
@@ -270,7 +295,7 @@ CREATE INDEX IF NOT EXISTS hive_votes_voter_id_last_update_idx ON hive_votes (vo
@@ -270,7 +295,7 @@ CREATE INDEX IF NOT EXISTS hive_votes_voter_id_last_update_idx ON hive_votes (vo
where not exists (select null from hive_db_patch_level where patched_to_revision = '0e3c8700659d98b45f1f7146dc46a195f905fc2d' )
@@ -356,4 +381,3 @@ DROP INDEX IF EXISTS hive_posts_promoted_idx;
@@ -356,4 +381,3 @@ DROP INDEX IF EXISTS hive_posts_promoted_idx;