Copied!

SqlPlatform

SqlPlatform.php : 19
Enum: string

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.

Cases

MYSQL

SqlPlatform.php : 21
string MYSQL = 'mysql'

MARIADB

SqlPlatform.php : 23
string MARIADB = 'mariadb'

POSTGRESQL

SqlPlatform.php : 25
string POSTGRESQL = 'postgresql'

SQLITE

SqlPlatform.php : 27
string SQLITE = 'sqlite'

Methods

publicall()

SqlPlatform.php : 32
public static all() : array<int, self>

Return values

array<int, self>