protected function getDBFromFile($fileName)
    {
        $parts = explode('_', preg_replace('/\.sql$/', '', $fileName));
        return isset($parts[1]) ? $parts[1] : null;
    }
protected function getDBFromFile($fileName)
    {
        $parts = explode('_', preg_replace('/\.sql$/', '', $fileName));
        return isset($parts[1]) ? $parts[1] : null;
    }
protected function getDBFromFile ( $ fileName ) { $ parts = explode ( '_' , preg_replace ( '/\.sql$/' , '' , $ fileName ) ) ; return isset ( $ parts [ 1 ] ) ? $ parts [ 1 ] : null ; }
allow both aaaa_mysql_etc.sql and aaaa_mysql.sql
allow both aaaa_mysql_etc . sql and aaaa_mysql . sql