X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F86sqlt.t;h=89783d361cb2494ea7b18b848baa002cdd3f8f7d;hb=65d351219882184861384aedac6f251b6797d0d7;hp=57268708509ef34144823f611d2426a8cb4dd297;hpb=9345b14c6c86aa8888bf5d47a569ee9bbde24f47;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/86sqlt.t b/t/86sqlt.t index 5726870..89783d3 100644 --- a/t/86sqlt.t +++ b/t/86sqlt.t @@ -88,6 +88,7 @@ my $schema = DBICTest->init_schema (no_deploy => 1); { my $deploy_hook_called = 0; $custom_deployment_statements_called = 0; + my $sqlt_type = $schema->storage->sqlt_type; # replace the sqlt calback with a custom version ading an index $schema->source('Track')->sqlt_deploy_callback(sub { @@ -97,11 +98,11 @@ my $schema = DBICTest->init_schema (no_deploy => 1); is ( $sqlt_table->schema->translator->producer_type, - join ('::', 'SQL::Translator::Producer', $schema->storage->sqlt_type), + join ('::', 'SQL::Translator::Producer', $sqlt_type), 'Production type passed to translator object', ); - if ($schema->storage->sqlt_type eq 'SQLite' ) { + if ($sqlt_type eq 'SQLite' ) { $sqlt_table->add_index( name => 'track_title', fields => ['title'] ) or die $sqlt_table->error; }