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:
parent
dae0f64aa1
commit
ddf22ca74e
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue