protected function schema($table)
{
if (isset($this->schemas[$table])) {
return $this->schemas[$table];
}
if ($table instanceof Table) {
return $this->schemas[$table->name()] = $table;
}
$collection = $this->config('collection');
$schema = $collection->describe($table);
$this->schemas[$table] = $schema;
return $schema;
}