Skip to content
GitLab
Explore
Sign in
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
ecd829d4
Commit
ecd829d4
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Payout field sizes correction: prevent overflow errors
parent
2c0b485e
No related branches found
No related tags found
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hive/db/schema.py
+3
-3
3 additions, 3 deletions
hive/db/schema.py
scripts/update_hivemind_db.sql
+6
-6
6 additions, 6 deletions
scripts/update_hivemind_db.sql
with
9 additions
and
9 deletions
hive/db/schema.py
+
3
−
3
View file @
ecd829d4
...
...
@@ -111,7 +111,7 @@ def build_metadata():
sa
.
Column
(
'
sc_trend
'
,
sa
.
Float
(
precision
=
6
),
nullable
=
False
,
server_default
=
'
0
'
),
sa
.
Column
(
'
sc_hot
'
,
sa
.
Float
(
precision
=
6
),
nullable
=
False
,
server_default
=
'
0
'
),
sa
.
Column
(
'
total_payout_value
'
,
sa
.
String
(
19
),
nullable
=
False
,
server_default
=
''
),
sa
.
Column
(
'
total_payout_value
'
,
sa
.
String
(
30
),
nullable
=
False
,
server_default
=
''
),
sa
.
Column
(
'
author_rewards
'
,
sa
.
BigInteger
,
nullable
=
False
,
server_default
=
'
0
'
),
sa
.
Column
(
'
author_rewards_hive
'
,
sa
.
BigInteger
,
nullable
=
False
,
server_default
=
'
0
'
),
...
...
@@ -131,10 +131,10 @@ def build_metadata():
sa
.
Column
(
'
parent_author_id
'
,
sa
.
Integer
,
nullable
=
False
),
sa
.
Column
(
'
parent_permlink_id
'
,
sa
.
Integer
,
nullable
=
False
),
sa
.
Column
(
'
curator_payout_value
'
,
sa
.
String
(
19
),
nullable
=
False
,
server_default
=
''
),
sa
.
Column
(
'
curator_payout_value
'
,
sa
.
String
(
30
),
nullable
=
False
,
server_default
=
''
),
sa
.
Column
(
'
root_author_id
'
,
sa
.
Integer
,
nullable
=
False
),
sa
.
Column
(
'
root_permlink_id
'
,
sa
.
Integer
,
nullable
=
False
),
sa
.
Column
(
'
max_accepted_payout
'
,
sa
.
String
(
19
),
nullable
=
False
,
server_default
=
''
),
sa
.
Column
(
'
max_accepted_payout
'
,
sa
.
String
(
30
),
nullable
=
False
,
server_default
=
''
),
sa
.
Column
(
'
percent_steem_dollars
'
,
sa
.
Integer
,
nullable
=
False
,
server_default
=
'
-1
'
),
sa
.
Column
(
'
allow_replies
'
,
BOOLEAN
,
nullable
=
False
,
server_default
=
'
1
'
),
sa
.
Column
(
'
allow_votes
'
,
BOOLEAN
,
nullable
=
False
,
server_default
=
'
1
'
),
...
...
This diff is collapsed.
Click to expand it.
scripts/update_hivemind_db.sql
+
6
−
6
View file @
ecd829d4
...
...
@@ -106,7 +106,7 @@ CREATE TABLE IF NOT EXISTS hive_posts_new (
sc_trend
NUMERIC
(
6
)
DEFAULT
'0.0'
,
sc_hot
NUMERIC
(
6
)
DEFAULT
'0.0'
,
total_payout_value
VARCHAR
(
19
)
DEFAULT
''
,
total_payout_value
VARCHAR
(
30
)
DEFAULT
''
,
author_rewards
BIGINT
DEFAULT
'0'
,
author_rewards_hive
BIGINT
DEFAULT
'0'
,
...
...
@@ -127,10 +127,10 @@ CREATE TABLE IF NOT EXISTS hive_posts_new (
-- columns from raw_json
parent_author_id
INT
DEFAULT
'-1'
,
parent_permlink_id
INT
DEFAULT
'-1'
,
curator_payout_value
VARCHAR
(
19
)
DEFAULT
''
,
curator_payout_value
VARCHAR
(
30
)
DEFAULT
''
,
root_author_id
INT
DEFAULT
'-1'
,
root_permlink_id
INT
DEFAULT
'-1'
,
max_accepted_payout
VARCHAR
(
19
)
DEFAULT
''
,
max_accepted_payout
VARCHAR
(
30
)
DEFAULT
''
,
percent_steem_dollars
INT
DEFAULT
'-1'
,
allow_replies
BOOLEAN
DEFAULT
'1'
,
allow_votes
BOOLEAN
DEFAULT
'1'
,
...
...
@@ -250,10 +250,10 @@ CREATE TABLE legacy_comment_data (
raw_json
TEXT
,
parent_author
VARCHAR
(
16
),
parent_permlink
VARCHAR
(
255
),
curator_payout_value
VARCHAR
(
19
),
curator_payout_value
VARCHAR
(
30
),
root_author
VARCHAR
(
16
),
root_permlink
VARCHAR
(
255
),
max_accepted_payout
VARCHAR
(
19
),
max_accepted_payout
VARCHAR
(
30
),
percent_steem_dollars
INT
,
allow_replies
BOOLEAN
,
allow_votes
BOOLEAN
,
...
...
@@ -268,7 +268,7 @@ CREATE TYPE legacy_comment_type AS (
id
BIGINT
,
parent_author
VARCHAR
(
16
),
parent_permlink
VARCHAR
(
255
),
curator_payout_value
VARCHAR
(
16
),
curator_payout_value
VARCHAR
(
30
),
root_author
VARCHAR
(
16
),
root_permlink
VARCHAR
(
255
),
max_accepted_payout
VARCHAR
(
16
),
...
...
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