-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ingest: asset_types and memo_type columns added #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
@@ -20,7 +20,7 @@ CREATE TABLE ingest_payments ( | |||
dest_asset_issuer text NOT NULL, | |||
dest_amount bigint NOT NULL, | |||
created_at timestamp with time zone NOT NULL, | |||
memo text, | |||
memo text NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we've got a deployed version, we should be careful about modifying the migrations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For sure! But in this case it should be safe, since this is just making the default value explicit to match the pattern in the other migrations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great! 🚀
ADD COLUMN src_asset_type text NOT NULL, | ||
ADD COLUMN dest_asset_type text NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are safe, but if we have entries in this table this migration will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed! I also tried explaining that in the Known limitations section.
DestAmount: 50, | ||
CreatedAt: time.Date(2024, 5, 28, 11, 0, 0, 0, time.UTC), | ||
Memo: &expectedMemo, | ||
Memo: utils.PointOf("memo_test"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
What
Adds three columns to the
ingest_payments
table, to be persisted when running ingestion.Columns:
src_asset_type
,dest_asset_type
andmemo_type
.Why
These are relevant columns to the Vibrant wallet and potentially to other wallets as well.
Known limitations
If ingestion had been running on any instance prior to this merge and there are any records in the
ingest_payments
table, those must be wiped before the migration can run.Since the Wallet Backend is in development phase and there are no instances running yet, this shouldn't be a problem.
Issue that this PR addresses
[Wallet Backend] Add new columns to payments ingestion
Checklist
PR Structure
all
if the changes are broad or impact many packages.Thoroughness
Release