protected function getCurrentVersion() { Sabel_Db_Migration_Manager::setStatement($this->stmt); Sabel_Db_Migration_Manager::setMetadata($this->metadata); try { if (!in_array("sbl_version", $this->metadata->getTableList())) { $this->createVersioningTable(); return 0; } else { return $this->getVersion(); } } catch (Exception $e) { $this->error($e->getMessage()); exit; } }