I have noticed strange behavior of $schema->deploy (actually my tests started to fail after DBIC upgrade).

my $schema = Schema->connect( 'dbi:SQLite:dbmane=:memory:' );
$schema->deploy({ add_drop_table => 1 });

produces "DROP TABLE some_table" statements
while

my $schema = Schema->connect( 'dbi:SQLite:dbmane=:memory:' );
$schema->storage->ensure_connected;
$schema->deploy({ add_drop_table => 1 });

produces "DROP TABLE IF EXISTS some_table"

Have no idea of where to commit this bug to (perhaps SQL::Translator?)

DBIC 0.08210
DBD::SQLite 1.37
SQL::Translator 0.11016



_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to