Overview

Packages

  • Db
    • Adapter
    • Migration

Classes

  • Horde_Db_Migration_Base
  • Horde_Db_Migration_Exception
  • Horde_Db_Migration_Migrator
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Db_Migration_Migrator

Package: Db\Migration
Category: Horde
License: http://www.horde.org/licenses/bsd
Author: Mike Naberezny mike@maintainable.com
Author: Derek DeVries derek@maintainable.com
Author: Chuck Hagenbuch chuck@horde.org
Located at Horde/Db/Migration/Migrator.php
Methods summary
public
# __construct( Horde_Db_Adapter $connection, Horde_Log_Logger $logger = null, array $options = array() )

Constructor.

Constructor.

Parameters

$connection
A DB connection object.
$logger
A logger object.
$options
<p>Additional options for the migrator: - migrationsPath: directory with the migration files. - schemaTableName: table for storing the schema version.</p>

Throws

Horde_Db_Migration_Exception
public
# migrate( string $targetVersion = null )

Parameters

$targetVersion
public
# up( string $targetVersion = null )

Parameters

$targetVersion
public
# down( string $targetVersion = null )

Parameters

$targetVersion
public integer
# getCurrentVersion( )

Returns

integer
public integer
# getTargetVersion( )

Returns

integer
public
# setMigrationsPath( string $migrationsPath )

Parameters

$migrationsPath
Path to migration files.
public
# setLogger( Horde_Log_Logger $logger )

Parameters

$logger
public
# setInflector( Horde_Support_Inflector $inflector )

Parameters

$inflector
API documentation generated by ApiGen