payments/db: split migration queries into dedicated SQLMigrationQueries interface

This commit is contained in:
ziggie committed 2026-02-25 18:52:34 +01:00
1 parent a2c36d1667
commit cf3610abb9
5 files changed
+30 -18

No files matched your search

@@ -29,7 +29,7 @@ type migratedPaymentRef struct {
// with their SQL counterparts. If a structural mismatch is detected, a full
// deep comparison is performed to produce a detailed diff for debugging.
func validateMigratedPaymentBatch(ctx context.Context,
kvBackend kvdb.Backend, sqlDB SQLQueries,
kvBackend kvdb.Backend, sqlDB SQLMigrationQueries,
cfg *SQLStoreConfig, batch []migratedPaymentRef) error {
if len(batch) == 0 {