Copied!

SqlPlatform

SqlPlatform.php : 21
Final

Database platforms an {@see AbstractSqlMigration} can target.

Unlike DatabasePlatformName, MariaDB is a platform of its own here: it runs MySQL's SQL, but some DDL (JSON columns, for instance) has to match what Doctrine DBAL generates for MariaDB.

Provided as class constants rather than an enum for PHP 7.4 compatibility.

Constants

publicMARIADB

SqlPlatform.php : 25
public mixed MARIADB = 'mariadb'

publicMYSQL

SqlPlatform.php : 23
public mixed MYSQL = 'mysql'

publicPOSTGRESQL

SqlPlatform.php : 27
public mixed POSTGRESQL = 'postgresql'

publicSQLITE

SqlPlatform.php : 29
public mixed SQLITE = 'sqlite'

Methods

publicall()

SqlPlatform.php : 39
public static all() : array<int, string>

Return values

array<int, string>