Skip to content

Commit

Permalink
add status_code to vdf_unicorn table and entity
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrofpk committed Apr 2, 2022
1 parent 46129d4 commit 68cb834
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE vdf_unicorn
ADD COLUMN status_code int(11) NOT NULL;
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ protected void persist(BigInteger y, BigInteger x, int iterations) throws Except

unicornEntity.setExternal(ExternalEntity.newExternalEntity());

unicornEntity.setStatusCode(0);

this.seedListUnicordCombination.forEach(SeedUnicordCombinationVo ->
unicornEntity.addSeed(new VdfUnicornSeedEntity(SeedUnicordCombinationVo, unicornEntity)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public class VdfUnicornEntity {
@Embedded
private ExternalEntity external;

private int statusCode;

private String combination;

@OneToMany(fetch = FetchType.LAZY, mappedBy = "vdfUnicornEntity", cascade = CascadeType.ALL)
Expand Down

0 comments on commit 68cb834

Please sign in to comment.