Skip to content

Commit

Permalink
refactor: rename is_last col to final in scalar_tap_ravs table
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Nov 14, 2023
1 parent 4f0ea80 commit 1178c63
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 40 deletions.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion migrations/20230915230734_tap_ravs.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ CREATE TABLE IF NOT EXISTS scalar_tap_ravs (
allocation_id CHAR(40) NOT NULL,
sender_address CHAR(40) NOT NULL,
rav JSON NOT NULL,
is_last BOOLEAN DEFAULT FALSE NOT NULL,
final BOOLEAN DEFAULT FALSE NOT NULL,
PRIMARY KEY (allocation_id, sender_address)
);
2 changes: 1 addition & 1 deletion tap-agent/src/tap/sender_allocation_relationship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl SenderAllocationRelationship {
let updated_rows = sqlx::query!(
r#"
UPDATE scalar_tap_ravs
SET is_last = true
SET final = true
WHERE allocation_id = $1 AND sender_address = $2
RETURNING *
"#,
Expand Down

0 comments on commit 1178c63

Please sign in to comment.