test(db): assert the daily-email index name, not just its columns

Lock the explicit index name so a rename or accidental drop is caught,
per review feedback that the existence check alone was too shallow.
This commit is contained in:
Víctor Falcón 2026-07-02 15:39:24 +02:00
parent dae0f64aa1
commit ddf22ca74e
1 changed files with 1 additions and 0 deletions

View File

@ -11,4 +11,5 @@ it('has a composite index supporting the daily synced-email transaction query',
expect($match)->not->toBeNull(
'Expected a (user_id, source, created_at) index on transactions for the daily email query.'
);
expect($match['name'])->toBe('idx_transactions_user_source_created');
});