PHP Class Doctrine\DBAL\Migrations\SqlFileWriter

Datei anzeigen Open project: doctrine/migrations Class Usage Examples

Public Methods

Method Description
__construct ( string $migrationsColumnName, string $migrationsTableName, string $destPath, Doctrine\DBAL\Migrations\OutputWriter $outputWriter = null )
write ( array $queriesByVersion, string $direction ) : integer | boolean

Protected Methods

Method Description
throwInvalidArgumentException ( $message ) This only exists for backwards-compatibiliy with DBAL 2.4

Private Methods

Method Description
buildMigrationFile ( array $queriesByVersion, $direction )
buildMigrationFilePath ( )
getVersionUpdateQuery ( $version, $direction )

Method Details

__construct() public method

public __construct ( string $migrationsColumnName, string $migrationsTableName, string $destPath, Doctrine\DBAL\Migrations\OutputWriter $outputWriter = null )
$migrationsColumnName string
$migrationsTableName string
$destPath string
$outputWriter Doctrine\DBAL\Migrations\OutputWriter

throwInvalidArgumentException() protected method

This only exists for backwards-compatibiliy with DBAL 2.4
protected throwInvalidArgumentException ( $message )

write() public method

public write ( array $queriesByVersion, string $direction ) : integer | boolean
$queriesByVersion array array Keys are versions and values are arrays of SQL queries (they must be castable to string)
$direction string
return integer | boolean