From: Yuval Kogman Date: Tue, 29 Jul 2008 17:53:11 +0000 (+0000) Subject: work even without journal_user X-Git-Tag: v0.900201~95 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aa873584bacf0e0ea54f2aa1df20971efe4c2cf5;p=dbsrgits%2FDBIx-Class-Journal.git work even without journal_user --- diff --git a/lib/DBIx/Class/Schema/Journal.pm b/lib/DBIx/Class/Schema/Journal.pm index a49c828..4a0a506 100644 --- a/lib/DBIx/Class/Schema/Journal.pm +++ b/lib/DBIx/Class/Schema/Journal.pm @@ -7,6 +7,7 @@ use DBIx::Class::Schema::Journal::DB; __PACKAGE__->mk_classdata('journal_storage_type'); __PACKAGE__->mk_classdata('journal_connection'); +__PACKAGE__->mk_classdata('journal_no_automatic_deploy'); __PACKAGE__->mk_classdata('journal_sources'); ## [ source names ] __PACKAGE__->mk_classdata('journal_user'); ## [ class, field for user id ] __PACKAGE__->mk_classdata('_journal_schema'); ## schema object for journal @@ -76,7 +77,8 @@ sub connection } - $self->journal_schema_deploy(); + $self->journal_schema_deploy() + unless $self->journal_no_automatic_deploy; ## Set up relationship between changeset->user_id and this schema's user if(!@{$self->journal_user || []})