Skip to content

Commit

Permalink
include submissions table in db_diff
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Jun 6, 2024
1 parent 3d67f70 commit 65dba76
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions db_migration/db_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,37 @@ def main(args):
file=sys.stderr,
)

if "all" in tables or "submissions" in tables:
subs = Insert(
conn,
"submissions",
(
"id",
"submitted_at_date",
"submitted_at",
"submitter",
"created_at",
"block_hash",
"remote_addr",
"peer_id",
"snark_work",
"graphql_control_port",
"built_with_commit_sha",
"state_hash",
"parent",
"height",
"slot",
"validation_error",
"verified",
),
)
subs.fetch_all()
subs.print()
print(
"Submissions fetched: {} rows".format(len(subs.results)),
file=sys.stderr,
)

if "all" in tables or "points" in tables:
points = Insert(
conn,
Expand Down

0 comments on commit 65dba76

Please sign in to comment.