when running perl scripts in deploy, use a $schema that is generated from the current...
[dbsrgits/DBIx-Class-DeploymentHandler.git] / lib / DBIx / Class / DeploymentHandler / ProvideSchema / FromCurrent.pm
CommitLineData
7d876442 1package DBIx::Class::DeploymentHandler::ProvideSchema::SQL::FromCurrent;
2
3use Moose;
4with 'DBIx::Class::DeploymentHandler::HandlesProvideSchema';
5
6has schema => (is=>'ro', required=>1);
7
8sub migration_schema { shift->schema }
9
101;
11
12# vim: ts=2 sw=2 expandtab
13
14__END__
15
16=method schema_for_run_files
17
18 my $schema = $dh->schema_for_run_files;
19
20Provides a L<DBIx::Class::Schema> object that we can pass to the Perl deploy
21scripts. We just return whatever C<$schema> you passed when you instantiated
22the L<DBIx::Class::DeploymentHandler> object.