‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Database\Schema\SchemaDiff Class Reference
Inheritance diagram for TYPO3\CMS\Core\Database\Schema\SchemaDiff:

Public Member Functions

 __construct (public array $createdSchemas, public array $droppedSchemas, public array $createdTables, public array $alteredTables, public array $droppedTables, public array $createdSequences, public array $alteredSequences, public array $droppedSequences,)
 
array< string > getCreatedSchemas ()
 
array< string > getDroppedSchemas ()
 
array< Sequence > getCreatedSequences ()
 
array< Sequence > getAlteredSequences ()
 
array< Sequence > getDroppedSequences ()
 
 isEmpty ()
 

Static Public Member Functions

static ensure (SchemaDiff|DoctrineSchemaDiff $schemaDiff)
 
static TableDiff[] Table[] ensureCollection (DoctrineTableDiff|TableDiff|Table ... $tableDiffs)
 

Public Attributes

array< string, function getCreatedTables():array { return $this-> createdTables
 
array< string, function getAlteredTables():array { return $this-> alteredTables
 
array< string, function getDroppedTables():array { return $this-> droppedTables
 

Detailed Description

Based on the doctrine/dbal implementation restoring direct property access and adding further helper methods.

not part of public Core API.

Definition at line 32 of file SchemaDiff.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Database\Schema\SchemaDiff::__construct ( public array  $createdSchemas,
public array  $droppedSchemas,
public array  $createdTables,
public array  $alteredTables,
public array  $droppedTables,
public array  $createdSequences,
public array  $alteredSequences,
public array  $droppedSequences 
)

Constructs an SchemaDiff object.

The diff can be only instantiated by a {

See also
Comparator}.
Parameters
array<string>‪$createdSchemas
array<string>‪$droppedSchemas
array<string,Table>‪$createdTables
array<string,TableDiff>‪$alteredTables
array<string,Table>‪$droppedTables
array<Sequence>‪$createdSequences
array<Sequence>‪$alteredSequences
array<Sequence>‪$droppedSequences

Definition at line 48 of file SchemaDiff.php.

References TYPO3\CMS\Core\Database\Schema\SchemaDiff\alteredTables, and TYPO3\CMS\Core\Database\Schema\TableDiff\isEmpty().

Member Function Documentation

◆ ensure()

static TYPO3\CMS\Core\Database\Schema\SchemaDiff::ensure ( SchemaDiff|DoctrineSchemaDiff  $schemaDiff)
static

◆ ensureCollection()

static TableDiff [] Table [] TYPO3\CMS\Core\Database\Schema\SchemaDiff::ensureCollection ( DoctrineTableDiff|TableDiff|Table ...  $tableDiffs)
static
Parameters
DoctrineTableDiff|TableDiff|Table‪...$tableDiffs
Returns
TableDiff[]|Table[]

Definition at line 153 of file SchemaDiff.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Core\Database\Schema\TableDiff\ensure().

Referenced by TYPO3\CMS\Core\Database\Schema\SchemaDiff\ensure().

◆ getAlteredSequences()

array<Sequence> TYPO3\CMS\Core\Database\Schema\SchemaDiff::getAlteredSequences ( )

Definition at line 101 of file SchemaDiff.php.

◆ getCreatedSchemas()

array<string> TYPO3\CMS\Core\Database\Schema\SchemaDiff::getCreatedSchemas ( )

Definition at line 65 of file SchemaDiff.php.

◆ getCreatedSequences()

array<Sequence> TYPO3\CMS\Core\Database\Schema\SchemaDiff::getCreatedSequences ( )

Definition at line 95 of file SchemaDiff.php.

◆ getDroppedSchemas()

array<string> TYPO3\CMS\Core\Database\Schema\SchemaDiff::getDroppedSchemas ( )

Definition at line 71 of file SchemaDiff.php.

◆ getDroppedSequences()

array<Sequence> TYPO3\CMS\Core\Database\Schema\SchemaDiff::getDroppedSequences ( )

Definition at line 107 of file SchemaDiff.php.

◆ isEmpty()

TYPO3\CMS\Core\Database\Schema\SchemaDiff::isEmpty ( )

Member Data Documentation

◆ alteredTables

array<string, function getAlteredTables(): array { return $this-> TYPO3\CMS\Core\Database\Schema\SchemaDiff::alteredTables

◆ createdTables

array<string, function getCreatedTables(): array { return $this-> TYPO3\CMS\Core\Database\Schema\SchemaDiff::createdTables

Definition at line 79 of file SchemaDiff.php.

Referenced by TYPO3\CMS\Core\Database\Schema\SchemaDiff\isEmpty().

◆ droppedTables

array<string, function getDroppedTables(): array { return $this-> TYPO3\CMS\Core\Database\Schema\SchemaDiff::droppedTables

Definition at line 91 of file SchemaDiff.php.

Referenced by TYPO3\CMS\Core\Database\Schema\SchemaDiff\isEmpty().