classUpgradeDatabaseName
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.
(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 $nameMethods§
public function deriveStatement(Derivation $derivation): voidHas nothing to derive: a database is no relation.
Parameters
$derivation | Derivation |
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 50
- class-const NameUse::Qualifier() line 50
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
UpgradeDatabaseNameTestcalls