public function testMigrationRename()
{
if ($this->queryDriver instanceof SQLiteDriver) {
return $this->markTestSkipped('skip this test when sqlite driver is used.');
}
$migration = new Migration($this->conn, $this->queryDriver, $this->logger);
$author = new Author();
$schema = $author->getDeclareSchema();
$column = $schema->getColumn('name');
$newColumn = clone $column;
$newColumn->name('name2');
$migration->renameColumn('authors', $column, $newColumn);
$migration->renameColumn('authors', $newColumn, $column);
}