Skip to content

Commit 1178c63

Browse files
committed
refactor: rename is_last col to final in scalar_tap_ravs table
Signed-off-by: Alexis Asseman <[email protected]>
1 parent 4f0ea80 commit 1178c63

5 files changed

+34
-40
lines changed

.sqlx/query-46a50e4bbfb5f7c57bb42fcfa17e3ffe3109b63b14aa746eacdb81288f919c16.json

-35
This file was deleted.

.sqlx/query-6d2f5eecfd846d8f1e2db87e1a79c73af715e64ea63132d4768731b222ad672b.json

+29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-d47a86f9686f9c72d2d5047d4c315adf6a3900d89553bdec541201fd3e282d83.json renamed to .sqlx/query-7a48651e528b87c6a618534806e70c2c494f3ba0774097652df984248869c20d.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

migrations/20230915230734_tap_ravs.up.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ CREATE TABLE IF NOT EXISTS scalar_tap_ravs (
22
allocation_id CHAR(40) NOT NULL,
33
sender_address CHAR(40) NOT NULL,
44
rav JSON NOT NULL,
5-
is_last BOOLEAN DEFAULT FALSE NOT NULL,
5+
final BOOLEAN DEFAULT FALSE NOT NULL,
66
PRIMARY KEY (allocation_id, sender_address)
77
);

tap-agent/src/tap/sender_allocation_relationship.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ impl SenderAllocationRelationship {
351351
let updated_rows = sqlx::query!(
352352
r#"
353353
UPDATE scalar_tap_ravs
354-
SET is_last = true
354+
SET final = true
355355
WHERE allocation_id = $1 AND sender_address = $2
356356
RETURNING *
357357
"#,

0 commit comments

Comments
 (0)