lib/DBIx/Class/Fixtures/DBI/mysql.pm
lib/DBIx/Class/Fixtures/DBI/Pg.pm
lib/DBIx/Class/Fixtures/Schema.pm
-lib/DBIx/Class/Fixtures/SchemaVersioned.pm
-lib/DBIx/Class/Fixtures/Versioned.pm
Makefile.PL
MANIFEST This list of files
META.yml
# clear existing db
$self->msg("- clearing DB of existing tables");
- eval { $dbh->do('SET foreign_key_checks=0') };
- foreach my $table (@tables) {
- eval { $dbh->do('drop table ' . $table . ($params->{cascade} ? ' cascade' : '') ) };
- }
+ $pre_schema->storage->with_deferred_fk_checks(sub {
+ foreach my $table (@tables) {
+ eval { $dbh->do('drop table ' . $table . ($params->{cascade} ? ' cascade' : '') ) };
+ }
+ });
# import new ddl file to db
my $ddl_file = $params->{ddl};