SchemaMigratorOptions.php in Schema 8
File
src/Migration/SchemaMigratorOptions.php
View source
<?php
namespace Drupal\schema\Migration;
class SchemaMigratorOptions {
public $useDifferentTables = TRUE;
public $useSameTables = FALSE;
public $fixTableComments = FALSE;
public $addMissingColumns = FALSE;
public $updateColumnProperties = FALSE;
public $removeExtraColumns = FALSE;
public $recreatePrimaryKey = FALSE;
public $recreateIndexes = FALSE;
public $recreateExtraIndexes = TRUE;
public function setUseDifferentTables($useDifferentTables) {
$this->useDifferentTables = $useDifferentTables;
return $this;
}
public function setUseSameTables($useSameTables) {
$this->useSameTables = $useSameTables;
return $this;
}
public function setFixTableComments($fixTableComments) {
$this->fixTableComments = $fixTableComments;
return $this;
}
public function setAddMissingColumns($addMissingColumns) {
$this->addMissingColumns = $addMissingColumns;
return $this;
}
public function setRemoveExtraColumns($removeExtraColumns) {
$this->removeExtraColumns = $removeExtraColumns;
return $this;
}
public function setUpdateColumnProperties($updateColumnProperties) {
$this->updateColumnProperties = $updateColumnProperties;
return $this;
}
public function setRecreateIndexes($recreateIndexes) {
$this->recreateIndexes = $recreateIndexes;
return $this;
}
public function setRecreatePrimaryKey($recreatePrimaryKey) {
$this->recreatePrimaryKey = $recreatePrimaryKey;
return $this;
}
public function setRecreateExtraIndexes($recreateExtraIndexes) {
$this->recreateExtraIndexes = $recreateExtraIndexes;
return $this;
}
}