Koha-clms/t/lib
Tomas Cohen Arazi 395304d3b5 Bug 14256: Check for unique constraint to regenerate random data
Unique constraints should be checked when creating random data. Otherwise
we get failures when the generated data already exists on the DB.

This patch takes advantage of ->unique_constraints() to do the job,
looping through all the unique constraints defined for the source.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-06-10 12:47:06 -03:00
..
Mocks.pm Bug 13274: Mock new_dbh in t::lib::Mocks 2014-11-19 09:50:32 -03:00
TestBuilder.pm Bug 14256: Check for unique constraint to regenerate random data 2015-06-10 12:47:06 -03:00