diff --git a/hive/db/schema.py b/hive/db/schema.py
index 430059b8084a1fe1d7a4e1cdfcc7ef3f2d6e6677..cbe5f82466ec89843e00d29b5890ded5a9aeb6c1 100644
--- a/hive/db/schema.py
+++ b/hive/db/schema.py
@@ -113,7 +113,7 @@ def build_metadata():
 
         sa.Column('total_payout_value', sa.String(19), nullable=False, server_default=''),
         sa.Column('author_rewards', sa.Integer, nullable=False, server_default='0'),
-        sa.Column('children_abs_rshares', sa.Integer, nullable=False, server_default='0'),
+        sa.Column('children_abs_rshares', sa.BigInteger, nullable=False, server_default='0'),
         sa.Column('abs_rshares', sa.BigInteger, nullable=False, server_default='0'),
         sa.Column('vote_rshares', sa.BigInteger, nullable=False, server_default='0'),
         sa.Column('net_votes', sa.Integer, nullable=False, server_default='0'),
diff --git a/hive/indexer/posts.py b/hive/indexer/posts.py
index 4955eb9fbc0ad649dfc667998a5d392be48a739f..96fd2622fdff93b14b79993965a91a90123a3f6d 100644
--- a/hive/indexer/posts.py
+++ b/hive/indexer/posts.py
@@ -317,7 +317,7 @@ class Posts:
         else:
             sql += """children = (SELECT children FROM hive_posts WHERE id = :id) - 1"""
         sql += """ WHERE id = :id"""
-        DB.query(sql, id=parent_id, op=op)
+        DB.query(sql, id=parent_id)
 
     @classmethod
     def undelete(cls, op, date, pid):
diff --git a/scripts/update_hivemind_db.sql b/scripts/update_hivemind_db.sql
index 835b7daa2bb133220ad62bde06cd64d60d99abbc..305d5e0c6bc78dab70799e9af52ec9c2460b95d9 100644
--- a/scripts/update_hivemind_db.sql
+++ b/scripts/update_hivemind_db.sql
@@ -108,7 +108,7 @@ CREATE TABLE IF NOT EXISTS hive_posts_new (
 
   total_payout_value VARCHAR(19) DEFAULT '',
   author_rewards INT DEFAULT '0',
-  children_abs_rshares INT DEFAULT '0',
+  children_abs_rshares BIGINT DEFAULT '0',
   abs_rshares BIGINT DEFAULT '0',
   vote_rshares BIGINT DEFAULT '0',
   net_votes INT DEFAULT '0',