public function migrate($table, array $fields, array $options = array())
{
// Setup defaults for options that do not exist
$options = $options + array('engine' => $this->_engine, 'charset' => $this->_charset, 'collate' => $this->_collate);
// Get current fields for table
$tableExists = false;
$tableColumns = $this->getColumnsForTable($table, $this->_database);
if ($tableColumns) {
$tableExists = true;
}
if ($tableExists) {
// Update table
$this->migrateTableUpdate($table, $fields, $options);
} else {
// Create table
$this->migrateTableCreate($table, $fields, $options);
}
}