Migrator¶
- 
class OC\DB\Migrator¶
- Source: - lib/private/DB/Migrator.php#46 
Properties¶
- 
protected static property OC\DB\Migrator::$connection¶
- Source: - lib/private/DB/Migrator.php#49 - Type: - \Doctrine\DBAL\Connection
- 
protected static property OC\DB\Migrator::$config¶
- Source: - lib/private/DB/Migrator.php#52 - Type: - \OCP\IConfig
Methods¶
- 
public OC\DB\Migrator::__construct($connection, $config, $dispatcher=null)¶
- Source: - Parameters: - $connection (Doctrine\DBAL\Connection)
- $config (OCP\IConfig)
- $dispatcher (Symfony\Component\EventDispatcher\EventDispatcherInterface)
 
- $connection (
- 
public OC\DB\Migrator::migrate($targetSchema)¶
- Source: - Parameters: - $targetSchema (Doctrine\DBAL\Schema\Schema)
 - Throws: - \Doctrine\DBAL\Exception
- $targetSchema (
- 
public OC\DB\Migrator::generateChangeScript($targetSchema)¶
- Source: - Parameters: - $targetSchema (Doctrine\DBAL\Schema\Schema)
 - Returns: - string 
- $targetSchema (
- 
public OC\DB\Migrator::createSchema()¶
- Source: - lib/private/DB/Migrator.php#102 - Throws: - \Doctrine\DBAL\Exception
- 
protected OC\DB\Migrator::getDiff($targetSchema, $connection)¶
- Source: - Parameters: - $targetSchema (Doctrine\DBAL\Schema\Schema)
- $connection (Doctrine\DBAL\Connection)
 - Returns: - \Doctrine\DBAL\Schema\SchemaDiff
- $targetSchema (
- 
protected OC\DB\Migrator::applySchema($targetSchema, $connection=null)¶
- Source: - Parameters: - $targetSchema (Doctrine\DBAL\Schema\Schema)
- $connection (Doctrine\DBAL\Connection)
 - Throws: - \Doctrine\DBAL\Exception
- $targetSchema (
- 
protected OC\DB\Migrator::convertStatementToScript($statement)¶
- Source: - Parameters: - $statement
 - Returns: - string 
- 
protected OC\DB\Migrator::getFilterExpression()¶
- Source: - lib/private/DB/Migrator.php#197 
- 
protected OC\DB\Migrator::emit($sql, $step, $max)¶
- Source: - lib/private/DB/Migrator.php#201