-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
invoices: migrate KV invoices to native SQL for users of KV SQL backends #8831
Open
bhandras
wants to merge
13
commits into
lightningnetwork:master
Choose a base branch
from
bhandras:sql-invoice-migration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Oct 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ba1c6fb - Browse repository at this point
Copy the full SHA ba1c6fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd2b552 - Browse repository at this point
Copy the full SHA cd2b552View commit details -
sqldb: set settled_at and settle_index on invocie insertion is set
Previously we intentially did not set settled_at and settle_index when inserting a new invoice as those fields are set when we settle an invoice through the usual invoice update. As migration requires that we set these nullable fields, we can safely add them.
Configuration menu - View commit details
-
Copy full SHA for 4f4f5c9 - Browse repository at this point
Copy the full SHA 4f4f5c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74bd006 - Browse repository at this point
Copy the full SHA 74bd006View commit details -
sqldb: add table to track custom SQL migrations
This commit adds the migration_tracker table which we'll use to track if a custom migration has already been done.
Configuration menu - View commit details
-
Copy full SHA for 5987960 - Browse repository at this point
Copy the full SHA 5987960View commit details -
Configuration menu - View commit details
-
Copy full SHA for d42abea - Browse repository at this point
Copy the full SHA d42abeaView commit details -
invoices: add method to create payment hash index
Certain invoices may not have a deterministic payment hash. For such invoices we still store the payment hashes in our KV database, but we do not have a sufficient index to retrieve them. This PR adds such index to the SQL database that will be used during migration to retrieve payment hashes.
Configuration menu - View commit details
-
Copy full SHA for b0ead35 - Browse repository at this point
Copy the full SHA b0ead35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0078293 - Browse repository at this point
Copy the full SHA 0078293View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a4dd7f - Browse repository at this point
Copy the full SHA 7a4dd7fView commit details -
lnd: run invoice migration on startup
This commit runs the invoice migration if the user has a KV SQL backend configured.
Configuration menu - View commit details
-
Copy full SHA for 29a2ce7 - Browse repository at this point
Copy the full SHA 29a2ce7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27293cf - Browse repository at this point
Copy the full SHA 27293cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 812a052 - Browse repository at this point
Copy the full SHA 812a052View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5b6d81 - Browse repository at this point
Copy the full SHA e5b6d81View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.