hack bugfix for sqlt_type weirdness
Luke Saunders [Thu, 28 Feb 2008 10:54:28 +0000 (10:54 +0000)]
lib/DBIx/Class/Schema/Versioned.pm

index 8095067..1506321 100644 (file)
@@ -286,6 +286,12 @@ sub upgrade
     return;
   }
 
+  # strangely the first time this is called can
+  # differ to subsequent times. so we call it 
+  # here to be sure.
+  # XXX - just fix it
+  $self->storage->sqlt_type;
+  
   my $upgrade_file = $self->ddl_filename(
                                          $self->storage->sqlt_type,
                                          $self->upgrade_directory,