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