From db6756e43d0340b490f9f9ffac96b51497033065 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Sat, 19 Dec 2015 21:45:58 +0000 Subject: [PATCH] DB changes --- Shrtr/config.yml | 4 +--- Shrtr/lib/Shrtr/Schema.pm | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Shrtr/config.yml b/Shrtr/config.yml index db67eab..17983f5 100644 --- a/Shrtr/config.yml +++ b/Shrtr/config.yml @@ -31,9 +31,7 @@ plugins: DBIC: shrtr: schema_class: Shrtr::Schema - dsn: dbi:mysql:database=shrtr - user: shrtr - pass: shorty + dsn: dbi:SQLite:database=shrtr.db session: cookie session_cookie_key: "random test session key" diff --git a/Shrtr/lib/Shrtr/Schema.pm b/Shrtr/lib/Shrtr/Schema.pm index 1a2a0f5..87acb94 100644 --- a/Shrtr/lib/Shrtr/Schema.pm +++ b/Shrtr/lib/Shrtr/Schema.pm @@ -13,6 +13,9 @@ __PACKAGE__->load_namespaces; # Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-02-04 17:50:02 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KESU4R2n6WpBxU2jBrNouA +our $VERSION = 0.001; +__PACKAGE__->load_components(qw[Schema::Versioned]); +__PACKAGE__->upgrade_directory('./db/sql'); # You can replace this text with custom code or comments, and it will be preserved on regeneration __PACKAGE__->meta->make_immutable(inline_constructor => 0);