From c1b999c3ed5d4779923f247e9fd2744d261b8cac Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 4 Apr 2017 22:19:23 +0100 Subject: [PATCH] Added simple script for deploying the database --- script/deploy_db | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 script/deploy_db diff --git a/script/deploy_db b/script/deploy_db new file mode 100644 index 0000000..350d0e2 --- /dev/null +++ b/script/deploy_db @@ -0,0 +1,12 @@ +#! /usr/bin/env perl + +use strict; +use warnings; + +use Pear::LocalLoop::Schema; + +my @con = @ARGV; + +my $schema = Pear::LocalLoop::Schema->connect(@con); + +$schema->deploy;