deployment_statements ensures_connected, this to stop the confusion etc over incorrec...
Jess Robinson [Mon, 19 Jun 2006 06:56:08 +0000 (06:56 +0000)]
lib/DBIx/Class/Storage/DBI.pm

index 029e216..5ddf478 100644 (file)
@@ -914,6 +914,8 @@ L<DBIx::Class::Schema/deploy>.
 
 sub deployment_statements {
   my ($self, $schema, $type, $version, $dir, $sqltargs) = @_;
+  # Need to be connected to get the correct sqlt_type
+  $elf->ensure_connected();
   $type ||= $self->sqlt_type;
   $version ||= $schema->VERSION || '1.x';
   $dir ||= './';