lnd/sqldb/sqlc/migrations
Elle Mouton cb2fc6621e
sqldb: add new gossip v2 columns to graph tables
Add a new migration that updates the graph tables (nodes, channels and
policies) in preparation for the new columns required for V2
announcements. This migration has to be added to the set of "live"
migrations instead of "dev only" since it edits the columns of existing
tables and so changes the existing sql models. We are going to prep the
SQLStore code to handle the V2 types in the coming commits, so we need
this migration to be in place.

In this commit we also remove the TestSchemaMigrationIdempotency test
since this test fails with the new "ALTER TABLE" migrations which dont
have "IF NOT EXISTS" options like tables and indexes do. Migrations
should be idempotent anyways due to the migration tracker file and/or
the sqlc migration tracker.
2026-02-13 07:21:20 +02:00
..
000001_invoices.down.sql sqldb: delete wrong index names and add missing one 2025-08-14 08:17:15 +02:00
000001_invoices.up.sql sqldb: make migration 1 and 3 idempotent 2025-03-28 11:00:56 +01:00
000002_amp_invoices.down.sql sqldb: add AMP invoices SQL schema 2023-07-10 17:53:56 -07:00
000002_amp_invoices.up.sql sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00
000003_invoice_events.down.sql sqldb: simplify and fixup the existing invoice store schema and queries 2024-03-01 10:08:07 +01:00
000003_invoice_events.up.sql sqldb: make migration 1 and 3 idempotent 2025-03-28 11:00:56 +01:00
000004_invoice_expiry_fix.down.sql sqldb+invoices: add migration to fix incorrectly stored invoice expiries 2024-07-09 08:39:57 +02:00
000004_invoice_expiry_fix.up.sql sqldb+invoices: add migration to fix incorrectly stored invoice expiries 2024-07-09 08:39:57 +02:00
000005_migration_tracker.down.sql sqldb: add table to track custom SQL migrations 2025-01-23 09:10:59 +01:00
000005_migration_tracker.up.sql sqldb: add table to track custom SQL migrations 2025-01-23 09:10:59 +01:00
000006_invoice_migration.down.sql sqldb: add a temporary index to store KV invoice hash to ID mapping 2025-01-23 09:11:00 +01:00
000006_invoice_migration.up.sql sqldb: add a temporary index to store KV invoice hash to ID mapping 2025-01-23 09:11:00 +01:00
000007_invoice_add_settled_index.down.sql sqldb: use the new schema 2025-08-14 11:59:09 +02:00
000007_invoice_add_settled_index.up.sql sqldb: use the new schema 2025-08-14 11:59:09 +02:00
000008_graph.down.sql sqldb: use the new schema 2025-08-14 11:59:09 +02:00
000008_graph.up.sql sqldb: use the new schema 2025-08-14 11:59:09 +02:00
000009_graph_v2.down.sql sqldb: add new gossip v2 columns to graph tables 2026-02-13 07:21:20 +02:00
000009_graph_v2.up.sql sqldb: add new gossip v2 columns to graph tables 2026-02-13 07:21:20 +02:00