mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-20 13:27:27 +02:00
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. |
||
|---|---|---|
| .. | ||
| 000001_invoices.down.sql | ||
| 000001_invoices.up.sql | ||
| 000002_amp_invoices.down.sql | ||
| 000002_amp_invoices.up.sql | ||
| 000003_invoice_events.down.sql | ||
| 000003_invoice_events.up.sql | ||
| 000004_invoice_expiry_fix.down.sql | ||
| 000004_invoice_expiry_fix.up.sql | ||
| 000005_migration_tracker.down.sql | ||
| 000005_migration_tracker.up.sql | ||
| 000006_invoice_migration.down.sql | ||
| 000006_invoice_migration.up.sql | ||
| 000007_invoice_add_settled_index.down.sql | ||
| 000007_invoice_add_settled_index.up.sql | ||
| 000008_graph.down.sql | ||
| 000008_graph.up.sql | ||
| 000009_graph_v2.down.sql | ||
| 000009_graph_v2.up.sql | ||