summaryrefslogtreecommitdiff
path: root/script/dump_schema.pl
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2010-06-21 23:20:31 +0100
committerdakkar <dakkar@thenautilus.net>2010-06-21 23:20:31 +0100
commitd5d36bac73f37a92d4ee2d18a807b2acbccf16f3 (patch)
treec007ce45296d350f43a2bd3afbae7ecb41dff90f /script/dump_schema.pl
downloadTFLMonitor-d5d36bac73f37a92d4ee2d18a807b2acbccf16f3.tar.gz
TFLMonitor-d5d36bac73f37a92d4ee2d18a807b2acbccf16f3.tar.bz2
TFLMonitor-d5d36bac73f37a92d4ee2d18a807b2acbccf16f3.zip
initial version
Diffstat (limited to 'script/dump_schema.pl')
-rw-r--r--script/dump_schema.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/script/dump_schema.pl b/script/dump_schema.pl
new file mode 100644
index 0000000..ec1e1bc
--- /dev/null
+++ b/script/dump_schema.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use DBIx::Class::Schema::Loader qw/ make_schema_at /;
+
+make_schema_at(
+ 'TFLMonitor::Schema',
+ {
+ debug => 1,
+ dump_directory => './lib',
+ },
+ [ 'dbi:SQLite:dbname=monitor.db', ],
+);