AlterSchema class

Framework\Database\Definition\AlterSchema

Class AlterSchema.

Extends Framework\Database\Statement

Implements: Stringable

Defined in libraries/database/src/Definition/AlterSchema.php

Methods #

charset()
-
collate()
-
run()
Runs the ALTER SCHEMA statement.
schema()
-
sql()
-
upgrade()
-
checkSpecifications()
-
renderCharset()
-
renderCollate()
-
renderSchema()
-
renderUpgrade()
-

charset()

public function charset(string $charset): static
Parameters
  • string $charset
Returns static

collate()

public function collate(string $collation): static
Parameters
  • string $collation
Returns static

run()

public function run(): string|int

Runs the ALTER SCHEMA statement.

Returns string|int - The number of affected rows

schema()

public function schema(string $schemaName): static
Parameters
  • string $schemaName
Returns static

sql()

public function sql(): string
Returns string

upgrade()

public function upgrade(): static
Returns static

checkSpecifications()

protected function checkSpecifications(): void
Returns void

renderCharset()

protected function renderCharset(): ?string
Returns ?string

renderCollate()

protected function renderCollate(): ?string
Returns ?string

renderSchema()

protected function renderSchema(): ?string
Returns ?string

renderUpgrade()

protected function renderUpgrade(): ?string
Returns ?string

Inherited methods #