public function install(Omeka_Db $db) { if (empty($this->_tables)) { throw new Installer_Task_Exception("No SQL files were given to create the schema."); } foreach ($this->_tables as $tableName => $sqlFilePath) { try { $db->loadSqlFile($sqlFilePath); } catch (Zend_Db_Exception $e) { throw new Installer_Task_Exception("Schema task failed" . " on table '" . $db->prefix . $tableName . "' with " . get_class($e) . ": " . $e->getMessage()); } } }