class SqlGenerator (View source)

The SqlGenerator class is responsible for generating the body of the up() and down() methods for a migration from an array of SQL queries.

Methods

__construct(Configuration $configuration, AbstractPlatform $platform)

No description

generate(array $sql, bool $formatted = false, int $lineLength = 120)

No description

Details

__construct(Configuration $configuration, AbstractPlatform $platform)

Parameters

Configuration $configuration
AbstractPlatform $platform

generate(array $sql, bool $formatted = false, int $lineLength = 120)

Parameters

array $sql
bool $formatted
int $lineLength