SchemaDiff extends SchemaDiff
Based on the doctrine/dbal implementation restoring direct property access and adding further helper methods.
not part of public Core API.
Table of Contents
Properties
- $alteredSequences : array<string|int, mixed>
- $alteredTables : array<string|int, mixed>
- $createdSchemas : array<string|int, mixed>
- $createdSequences : array<string|int, mixed>
- $createdTables : array<string|int, mixed>
- $droppedSchemas : array<string|int, mixed>
- $droppedSequences : array<string|int, mixed>
- $droppedTables : array<string|int, mixed>
Methods
- __construct() : mixed
- Constructs an SchemaDiff object.
- ensure() : self
- ensureCollection() : array<string|int, TableDiff>|array<string|int, Table>
- getAlteredSequences() : array<string|int, Sequence>
- getAlteredTables() : array<string, TableDiff>
- getCreatedSchemas() : array<string|int, string>
- getCreatedSequences() : array<string|int, Sequence>
- getCreatedTables() : array<string, Table>
- getDroppedSchemas() : array<string|int, string>
- getDroppedSequences() : array<string|int, Sequence>
- getDroppedTables() : array<string, Table>
- isEmpty() : bool
- Returns whether the diff is empty (contains no changes).
Properties
$alteredSequences
public
array<string|int, mixed>
$alteredSequences
$alteredTables
public
array<string|int, mixed>
$alteredTables
$createdSchemas
public
array<string|int, mixed>
$createdSchemas
$createdSequences
public
array<string|int, mixed>
$createdSequences
$createdTables
public
array<string|int, mixed>
$createdTables
$droppedSchemas
public
array<string|int, mixed>
$droppedSchemas
$droppedSequences
public
array<string|int, mixed>
$droppedSequences
$droppedTables
public
array<string|int, mixed>
$droppedTables
Methods
__construct()
Constructs an SchemaDiff object.
public
__construct(array<string|int, string> $createdSchemas, array<string|int, string> $droppedSchemas, array<string, Table> $createdTables, array<string, TableDiff> $alteredTables, array<string, Table> $droppedTables, array<string|int, Sequence> $createdSequences, array<string|int, Sequence> $alteredSequences, array<string|int, Sequence> $droppedSequences) : mixed
Parameters
- $createdSchemas : array<string|int, string>
- $droppedSchemas : array<string|int, string>
- $createdTables : array<string, Table>
- $alteredTables : array<string, TableDiff>
- $droppedTables : array<string, Table>
- $createdSequences : array<string|int, Sequence>
- $alteredSequences : array<string|int, Sequence>
- $droppedSequences : array<string|int, Sequence>
The diff can be only instantiated by a Comparator.
ensure()
public
static ensure(SchemaDiff|SchemaDiff $schemaDiff[, array<string|int, mixed> $additionalArguments = [] ]) : self
Parameters
- $schemaDiff : SchemaDiff|SchemaDiff
- $additionalArguments : array<string|int, mixed> = []
Return values
selfensureCollection()
public
static ensureCollection(TableDiff|TableDiff|Table ...$tableDiffs) : array<string|int, TableDiff>|array<string|int, Table>
Parameters
- $tableDiffs : TableDiff|TableDiff|Table
Return values
array<string|int, TableDiff>|array<string|int, Table>getAlteredSequences()
public
getAlteredSequences() : array<string|int, Sequence>
Return values
array<string|int, Sequence>getAlteredTables()
public
getAlteredTables() : array<string, TableDiff>
Return values
array<string, TableDiff>getCreatedSchemas()
public
getCreatedSchemas() : array<string|int, string>
Return values
array<string|int, string>getCreatedSequences()
public
getCreatedSequences() : array<string|int, Sequence>
Return values
array<string|int, Sequence>getCreatedTables()
public
getCreatedTables() : array<string, Table>
Return values
array<string, Table>getDroppedSchemas()
public
getDroppedSchemas() : array<string|int, string>
Return values
array<string|int, string>getDroppedSequences()
public
getDroppedSequences() : array<string|int, Sequence>
Return values
array<string|int, Sequence>getDroppedTables()
public
getDroppedTables() : array<string, Table>
Return values
array<string, Table>isEmpty()
Returns whether the diff is empty (contains no changes).
public
isEmpty() : bool