Skip to content
Snippets Groups Projects
Commit 582a3a72 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Fixed bad datatype for column children_abs_rshares

parent b259300b
No related branches found
No related tags found
5 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!16Dk issue 3 concurrent block query rebase,!15Dk issue 3 concurrent block query
...@@ -113,7 +113,7 @@ def build_metadata(): ...@@ -113,7 +113,7 @@ def build_metadata():
sa.Column('total_payout_value', sa.String(19), nullable=False, server_default=''), 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('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('abs_rshares', sa.BigInteger, nullable=False, server_default='0'),
sa.Column('vote_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'), sa.Column('net_votes', sa.Integer, nullable=False, server_default='0'),
......
...@@ -317,7 +317,7 @@ class Posts: ...@@ -317,7 +317,7 @@ class Posts:
else: else:
sql += """children = (SELECT children FROM hive_posts WHERE id = :id) - 1""" sql += """children = (SELECT children FROM hive_posts WHERE id = :id) - 1"""
sql += """ WHERE id = :id""" sql += """ WHERE id = :id"""
DB.query(sql, id=parent_id, op=op) DB.query(sql, id=parent_id)
@classmethod @classmethod
def undelete(cls, op, date, pid): def undelete(cls, op, date, pid):
......
...@@ -108,7 +108,7 @@ CREATE TABLE IF NOT EXISTS hive_posts_new ( ...@@ -108,7 +108,7 @@ CREATE TABLE IF NOT EXISTS hive_posts_new (
total_payout_value VARCHAR(19) DEFAULT '', total_payout_value VARCHAR(19) DEFAULT '',
author_rewards INT DEFAULT '0', author_rewards INT DEFAULT '0',
children_abs_rshares INT DEFAULT '0', children_abs_rshares BIGINT DEFAULT '0',
abs_rshares BIGINT DEFAULT '0', abs_rshares BIGINT DEFAULT '0',
vote_rshares BIGINT DEFAULT '0', vote_rshares BIGINT DEFAULT '0',
net_votes INT DEFAULT '0', net_votes INT DEFAULT '0',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment