Tailor\Classes\SchemaBuilder

Overview

SchemaBuilder builds tables for tailor content


Protected Properties

protected Blueprint $blueprint

protected Fieldset $fieldset

fields

protected ContentSchema $contentSchema

protected DbBlueprint $tableBlueprint

tableBlueprint for managing the table

protected string $tableName

tableName for the blueprint content

protected bool $tableExists

protected array $tableColumns

protected int $actionCount

actionCount number of actions that occurred.

protected array $reservedFieldNames

reservedFieldNames are field names that cannot be used as database columns.

See Also

Public Methods

public initBlueprint()

public initBlueprint($blueprint, $fieldset): void

public migrate()

public migrate(): void

public static migrateBlueprint()

public static migrateBlueprint($blueprint, $fieldset): void

public migrateFields()

public migrateFields(): void

public migrateJoins()

public migrateJoins(): void

public migrateRepeaters()

public migrateRepeaters(): void

Protected Methods

protected defineDraftableColumns()

protected defineDraftableColumns($table): void

protected defineEndColumns()

protected defineEndColumns($table): void

protected defineFieldColumns()

protected defineFieldColumns($table): void

protected defineJoinTableColumns()

protected defineJoinTableColumns($table): void

protected defineRepeaterTableColumns()

protected defineRepeaterTableColumns($table): void

protected defineStartColumns()

protected defineStartColumns($table): void

protected defineStreamColumns()

protected defineStreamColumns($table): void

protected defineStructureColumns()

protected defineStructureColumns($table): void

protected defineTableComment()

protected defineTableComment($table, $message = null): void

defineTableComment adds a comment to the table to make it easier to find

protected defineVersionableColumns()

protected defineVersionableColumns($table): void

protected defineVisibilityColumns()

protected defineVisibilityColumns($table): void

protected getContentSchema()

protected getContentSchema(): void

protected hasColumn()

protected hasColumn($column): void

protected makeDatabaseBlueprint()

protected makeDatabaseBlueprint($fieldset): void

protected migrateDropColumns()

protected migrateDropColumns(): void

protected migrateMetaData()

protected migrateMetaData(): void

protected migrateRenameColumns()

protected migrateRenameColumns(): void

protected migrateTablePatches()

protected migrateTablePatches(): void

migrateTablePatches when certain conditions change

protected patchRepeaterTableColumns()

protected patchRepeaterTableColumns($table): void

protected patchTableWhenBlueprintBecomesMultisite()

protected patchTableWhenBlueprintBecomesMultisite(): void

protected patchTableWhenBlueprintBecomesStructure()

protected patchTableWhenBlueprintBecomesStructure(): void