Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
582a3a72
Commit
582a3a72
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bad datatype for column children_abs_rshares
parent
b259300b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
5 merge requests
!456
Release candidate v1 24
,
!230
Setup monitoring with pghero
,
!135
Enable postgres monitoring on CI server
,
!16
Dk issue 3 concurrent block query rebase
,
!15
Dk issue 3 concurrent block query
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hive/db/schema.py
+1
-1
1 addition, 1 deletion
hive/db/schema.py
hive/indexer/posts.py
+1
-1
1 addition, 1 deletion
hive/indexer/posts.py
scripts/update_hivemind_db.sql
+1
-1
1 addition, 1 deletion
scripts/update_hivemind_db.sql
with
3 additions
and
3 deletions
hive/db/schema.py
+
1
−
1
View file @
582a3a72
...
@@ -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
.
Big
Integer
,
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
'
),
...
...
This diff is collapsed.
Click to expand it.
hive/indexer/posts.py
+
1
−
1
View file @
582a3a72
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
scripts/update_hivemind_db.sql
+
1
−
1
View file @
582a3a72
...
@@ -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
BIG
INT
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'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment