issue #89: net_votes and total_votes are calculated during sync
Compare changes
- Bartek Wrona authored
Columns added via alter table should have also defined DEFAULT constrains to satisfy INSERT statements.
@@ -15,7 +15,7 @@ BEGIN
@@ -31,13 +31,13 @@ IF NOT EXISTS(SELECT data_type
@@ -187,7 +187,34 @@ IF EXISTS(SELECT data_type FROM information_schema.columns
@@ -200,9 +227,9 @@ DROP INDEX IF EXISTS hive_mentions_post_id_idx;
@@ -228,13 +255,13 @@ IF NOT EXISTS(SELECT data_type
@@ -245,7 +272,7 @@ $BODY$;
@@ -270,7 +297,7 @@ CREATE INDEX IF NOT EXISTS hive_votes_voter_id_last_update_idx ON hive_votes (vo
@@ -356,4 +383,3 @@ DROP INDEX IF EXISTS hive_posts_promoted_idx;