$self->_journal_schema($journal_schema->compose_namespace(blessed($self) . '::Journal'));
## Create auditlog+history per table
- my %j_sources = @{$self->journal_sources} ? map { $_ => 1 } @{$self->journal_sources} : map { $_ => 1 } $self->sources;
+ my %j_sources = map { $_ => 1 } $self->journal_sources
+ ? @{$self->journal_sources}
+ : $self->sources;
foreach my $s_name ($self->sources)
{
next unless($j_sources{$s_name});
$data->{change} = {
# ID => \'DEFAULT',
changeset_id => $source->schema->current_changeset,
- %{$data->{change}},
+ %{$data->{change}||{}},
};
$self->next::method($data, @rest);
# ID => \'DEFAULT',
# ID => 1,
changeset_id => $source->schema->current_changeset,
- %{$data->{created}},
+ %{$data->{created}||{}},
};
$self->next::method($data, @rest);