Ensure connected so we get the correct DBI::Foo type
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Schema / Versioned.pm
index d98b024..795562a 100644 (file)
@@ -60,6 +60,7 @@ sub on_connect
     {
 #        print "deploying.. \n";
         $vschema->storage->debug(1);
+        $vschema->storage->ensure_connected();
 #        print "Debugging is: ", $vschema->storage->debug, "\n";
         $vschema->deploy();
         $pversion = 0;