# create the audit log entries for the rows in this page
$log_rs->populate([
- map {{ create_id => $log_ids[$_], id => $x[$_]->{$pk} }} (0 .. $#x)
+ map {{ create_id => $log_ids[$_], $pk => $x[$_]->{$pk} }} (0 .. $#x)
]);
# now populate the audit history
eval "use DBD::SQLite; use SQL::Translator";
plan $@
? ( skip_all => 'needs DBD::SQLite and SQL::Translator for testing' )
- : ( tests => 21 );
+ : ( tests => 17 );
}
use lib qw(t/lib);
# connect to db and deploy only the original db schema, not journal schema
my $schema = DBICTest->init_schema(no_populate => 1, no_deploy => 1);
-$schema->deploy;
ok($schema, 'Created a Schema');
+$schema->deploy;
# check we have no journal
my $count = eval {