Allow sqlt_deploy_hook on views
Peter Rabbitson [Fri, 27 Feb 2009 00:32:29 +0000 (00:32 +0000)]
lib/SQL/Translator/Parser/DBIx/Class.pm

index bff7ddc..886c61c 100644 (file)
@@ -246,6 +246,8 @@ sub parse {
         if ($source->result_class->can('sqlt_deploy_hook')) {
           $source->result_class->sqlt_deploy_hook($view);
         }
+
+        $source->_invoke_sqlt_deploy_hook($view);
     }
 
     if ($dbicschema->can('sqlt_deploy_hook')) {