diff --git a/payments/db/sql_store.go b/payments/db/sql_store.go index 9644266f8..3637a981b 100644 --- a/payments/db/sql_store.go +++ b/payments/db/sql_store.go @@ -132,9 +132,6 @@ func NewSQLStore(cfg *SQLStoreConfig, db BatchedSQLQueries, }, nil } -// A compile-time constraint to ensure SQLStore implements DB. -var _ DB = (*SQLStore)(nil) - // fetchPaymentWithCompleteData fetches a payment with all its related data // including attempts, hops, and custom records from the database. // This is a convenience wrapper around the batch loading functions for single diff --git a/sqldb/sqlc/migrations/000010_payments.down.sql b/sqldb/sqlc/migrations/000010_payments.down.sql index 62b19cb99..68f19f779 100644 --- a/sqldb/sqlc/migrations/000010_payments.down.sql +++ b/sqldb/sqlc/migrations/000010_payments.down.sql @@ -39,16 +39,16 @@ DROP INDEX IF EXISTS idx_htlc_payment_hash; DROP INDEX IF EXISTS idx_htlc_attempt_time; DROP TABLE IF EXISTS payment_htlc_attempts; --- ───────────────────────────────────────────── --- Drop payments table and its indexes. --- ───────────────────────────────────────────── - -DROP INDEX IF EXISTS idx_payments_created_at; -DROP TABLE IF EXISTS payments; - -- ───────────────────────────────────────────── -- Drop payment intents table and its indexes. -- ───────────────────────────────────────────── DROP INDEX IF EXISTS idx_payment_intents_type; -DROP TABLE IF EXISTS payment_intents; \ No newline at end of file +DROP TABLE IF EXISTS payment_intents; + +-- ───────────────────────────────────────────── +-- Drop payments table and its indexes. +-- ───────────────────────────────────────────── + +DROP INDEX IF EXISTS idx_payments_created_at; +DROP TABLE IF EXISTS payments; \ No newline at end of file