Skip to content
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
wants to merge 13 commits into
base: master
Choose a base branch
from

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    ba1c6fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cd2b552 View commit details
    Browse the repository at this point in the history
  3. 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.
    bhandras committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    4f4f5c9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    74bd006 View commit details
    Browse the repository at this point in the history
  5. 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.
    bhandras committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    5987960 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d42abea View commit details
    Browse the repository at this point in the history
  7. 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.
    bhandras committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b0ead35 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0078293 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7a4dd7f View commit details
    Browse the repository at this point in the history
  10. lnd: run invoice migration on startup

    This commit runs the invoice migration if the user has a KV SQL backend
    configured.
    bhandras committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    29a2ce7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    27293cf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    812a052 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e5b6d81 View commit details
    Browse the repository at this point in the history