Debugging why sqlt deployment order of views is wrong.
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / CafeInsertion.pm
CommitLineData
3365fc70 1package # hide from PAUSE
2 CafeInsertion;
c8e085ba 3
4use strict;
5use warnings;
6use parent 'DBIx::Class::Schema';
7use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance' => 'MTIView';
8
9for my $p (__PACKAGE__) {
10 $p->load_namespaces;
11 $_->attach_additional_sources
12 for grep $_->isa(MTIView), map $p->source($_), $p->sources;
13}
14
3365fc70 15sub sqlt_deploy_hook {
16 my $self = shift;
17 $self->{sqlt} = shift;
18}
19
c8e085ba 201;