com\setasign\SetaFramework\Database\Migration
MigrationGenerator
File: /SetaFramework/src/Database/Migration/MigrationGenerator.php
Class hierarchy
Summary
Constants
TYPE_PHP
TYPE_QUERY
TYPE_REMOVE_SQL_MODE
TYPE_RESTORE_SQL_MODE
Properties
$name
private string MigrationGenerator::$name
Methods
__construct()
public MigrationGenerator::__construct ()
Parameters
- $migrationSave : MigrationSaveInterface
- $migrationManagerName : string
downPhpCode()
Note: the code should be formatted with 8 leading spaces per line and \n as line separator.
Parameters
- $code : string
downRemoveSqlMode()
Parameters
- $sqlMode : string
Multiple sql modes are possible and every sql mode must be separated with a pipe |.
upPhpCode()
Note: the code should be formatted with 8 leading spaces per line and \n as line separator.
Parameters
- $code : string
upRemoveSqlMode()
Parameters
- $sqlMode : string
Multiple sql modes are possible and every sql mode must be separated with a pipe |.
