public function build(Connection $connection, Grammar $grammar)
{
$statements = $this->toSql($connection, $grammar);
if (!$statements) {
throw new \RuntimeException('migration must be created with Blueprint');
}
foreach ($statements as $statement) {
$connection->statement($statement);
}
$db = $connection->getDatabaseName();
$table = $this->getTable();
$this->meta->flushAll($db, $table);
}