work even without journal_user
Yuval Kogman [Tue, 29 Jul 2008 17:53:11 +0000 (17:53 +0000)]
lib/DBIx/Class/Schema/Journal.pm

index a49c828..4a0a506 100644 (file)
@@ -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 || []})