use vars qw($VERSION $DEBUG $errstr);
use Storable;
use DBIx::DBSchema::_util qw(_load_driver _dbh);
-use DBIx::DBSchema::Table 0.04;
+use DBIx::DBSchema::Table 0.05;
use DBIx::DBSchema::Index;
use DBIx::DBSchema::Column;
use DBIx::DBSchema::ColGroup::Unique;
use DBIx::DBSchema::ColGroup::Index;
-$VERSION = "0.33";
-#$VERSION = eval $VERSION; # modperlstyle: convert the string into a number
+$VERSION = "0.34_01";
+$VERSION = eval $VERSION; # modperlstyle: convert the string into a number
$DEBUG = 0;
}
- # should eventually drop tables not in $new
+ # drop tables not in $new
+ foreach my $table ( $self->tables ) {
+
+ if ( !$new->table($table) ) {
+
+ warn "table $table should be dropped.\n" if $DEBUG;
+
+ push @r,
+ $self->table($table)->sql_drop_table( $dbh );
+ }
+ }
warn join("\n", @r). "\n"
if $DEBUG > 1;