Exemple #1
0
 protected function _setupTableName()
 {
     if (!in_array("bolts_database_versions", $this->getAdapter()->listTables())) {
         // table does not exist. we need to create it first.
         $script = new Bolts_Db_Script("default", "create_database_versions");
         if (!$script) {
             throw new Exception("CANT_UPGRADE - Cannot upgrade the database because versions table does not exist and couldn't be created.");
         }
     }
     $this->_name = 'bolts_database_versions';
     parent::_setupTableName();
 }