X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema%2FArtist.pm;h=424fbe94322fe46cee10155fec6097361ed1ceae;hb=aaf2403d17fd75fea98d22c2ef28c42d3285ef03;hp=a412bf040978c63c837c6d3d802231564ab267c9;hpb=c385ecea5ec4297f269bcc2b8db8e08f5772196d;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema/Artist.pm b/t/lib/DBICTest/Schema/Artist.pm index a412bf0..424fbe9 100644 --- a/t/lib/DBICTest/Schema/Artist.pm +++ b/t/lib/DBICTest/Schema/Artist.pm @@ -41,6 +41,11 @@ __PACKAGE__->has_many( { cascade_copy => 0 } # this would *so* not make sense ); -__PACKAGE__->add_index({ name => 'artist_name', fields => ['name'],}); +sub sqlt_deploy_hook { + my ($self, $sqlt_table) = @_; + + $sqlt_table->add_index( name => 'artist_name', fields => ['name'] ) + or die $sqlt_table->error; +} 1;