# clean up our mess
END {
# Set the metadata back for the last_updated_on column
- $schema->class('Track')->add_column( 'last_updated_on' => $col_metadata );
+ if( $schema ) {
+ $schema->class('Track')
+ ->add_column( 'last_updated_on' => $col_metadata );
+ }
if($dbh) {
$dbh->do("DROP TABLE track");