public function createMigrationTable()
{
$this->validate();
if ($this->migrationTableCreated) {
return false;
}
$this->connect();
if ($this->connection->getSchemaManager()->tablesExist([$this->migrationsTableName])) {
$this->migrationTableCreated = true;
return false;
}
$columns = [$this->migrationsColumnName => new Column($this->migrationsColumnName, Type::getType('string'), ['length' => 255])];
$table = new Table($this->migrationsTableName, $columns);
$table->setPrimaryKey([$this->migrationsColumnName]);
$this->connection->getSchemaManager()->createTable($table);
$this->migrationTableCreated = true;
return true;
}