class TableDefinition

internal  
 

A table whose facts may still change before the schema is frozen.

Properties

ColumnDefinition> $columns
Index> $indexes
ForeignKey> $foreignKeys
array<int, true> $attachedForeignKeys
array<int, list<string>> $foreignKeyIssues
bool $unrepresentedIndexes

Whether the table has PostgreSQL indexes that are not represented, which its partitions also get

bool $unresolvedForeignKeys

Whether a parent foreign key may be missing from the table's PostgreSQL foreign keys, as from its partitions'

CheckConstraint> $checks
string|null $comment
string|null $collation
string|null $engine
TableReference> $parents
TableReference|null $partitionOf
string|null $partitionBounds
Issue> $issues
array<array-key, array{valid: bool, noInherit: bool}> $notNullConstraints

Methods

__construct(string $name, string|null $schema = null)

Create a table definition.

Details

at line 66
__construct(string $name, string|null $schema = null)

Create a table definition.

Parameters

string $name
string|null $schema