final class UpgradeDatabaseName
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

ALTER DATABASE name UPGRADE DATA DIRECTORY NAME: a request to rename a database directory to the encoding of MySQL 5.1 (MySQL 5.6 and 5.7).

Mirrors SQLCOM_ALTER_DB_UPGRADE. Rule: MYSQL-UPGRADE-DATABASE-001. The name is that of the database as written after the old #mysql50# prefix. The statement changes no declaration. Source: https://dev.mysql.com/doc/refman/5.7/en/alter-database.html. Status: Implemented.

Upgrading a database directory namedoctest
(new \SqlSemantics\Platform\MySql\Semantics('mysql-5.7.44'))->analyze('alter database `#mysql50#a-b` upgrade data directory name')->toString() // => 'ALTER DATABASE `#mysql50#a-b` UPGRADE DATA DIRECTORY NAME'

Properties§

public Name $name

Methods§

public function __construct(public Name $name)

Parameters

$nameNameThe database name
public function deriveStatement(Derivation $derivation): void

Has nothing to derive: a database is no relation.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 2

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1