Skip to content

Commit

Permalink
adjust from comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerKSI committed Sep 4, 2023
1 parent 8496a71 commit a719281
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flusher/flusher/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def Column(*args, **kwargs):
Column("version", sa.Integer, index=True),
Column("admin", sa.String, sa.ForeignKey("accounts.address")),
Column("metadata", sa.String),
Column("total_weight", sa.String),
Column("total_weight", sa.BigInteger),
Column("created_at", CustomDateTime),
)

Expand All @@ -506,7 +506,7 @@ def Column(*args, **kwargs):
metadata,
Column("group_id", sa.Integer, sa.ForeignKey("groups.id"), primary_key=True),
Column("account_id", sa.Integer, sa.ForeignKey("accounts.id"), primary_key=True),
Column("weight", sa.String),
Column("weight", sa.BigInteger),
Column("metadata", sa.String),
Column("added_at", CustomDateTime),
)
Expand Down Expand Up @@ -550,7 +550,7 @@ def Column(*args, **kwargs):
"group_votes",
metadata,
Column("group_proposal_id", sa.Integer, sa.ForeignKey("group_proposals.id"), primary_key=True),
Column("voter_id", sa.Integer, sa.ForeignKey("accounts.id")),
Column("voter_id", sa.Integer, sa.ForeignKey("accounts.id"), primary_key=True),
Column("option", sa.String),
Column("metadata", sa.String),
Column("submit_time", CustomDateTime),
Expand Down
8 changes: 8 additions & 0 deletions hasura/hasura-metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,14 @@
table:
name: group_votes
schema: public
array_relationships:
- name: group_votes
using:
foreign_key_constraint_on:
column: group_proposal_id
table:
name: group_votes
schema: public
- table:
name: group_votes
schema: public
Expand Down

0 comments on commit a719281

Please sign in to comment.