blob: aa31811d39947ff848a77703b0c756f5fbc76cf4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use strict;
use warnings;
use jitterbug::Schema;
use YAML qw/LoadFile/;
my $config = shift;
die "need configuration file" unless $config;
my $dancer_conf = LoadFile($config);
my $dbix_conf = $dancer_conf->{plugins}->{DBIC}->{schema};
my $schema = jitterbug::Schema->connect( @{ $dbix_conf->{connect_info} } );
$schema->deploy;
print "done!\n";
|