A

AbortMigrationExceptionClass in namespace Doctrine\DBAL\Migrations
AbstractMigrationClass in namespace Doctrine\DBAL\Migrations
Abstract class for individual migrations to extend from.
AbstractMigration::abortIf() — Method in class AbstractMigration
Abort the migration if the condition evaluates to TRUE.
AbstractMigration::addSql() — Method in class AbstractMigration
AbstractFileConfigurationClass in namespace Doctrine\DBAL\Migrations\Configuration
Abstract Migration Configuration class for loading configuration information from a configuration file (xml or yml).
ArrayConfigurationClass in namespace Doctrine\DBAL\Migrations\Configuration
Load migration configuration information from a PHP configuration file.
Configuration::areMigrationsOrganizedByYear() — Method in class Configuration
Configuration::areMigrationsOrganizedByYearAndMonth() — Method in class Configuration
ArrayConnectionConfigurationLoaderClass in namespace Doctrine\DBAL\Migrations\Configuration\Connection\Loader
AutoCommitListenerClass in namespace Doctrine\DBAL\Migrations\Event\Listeners
Listens for onMigrationsMigrated and, if the conneciton is has autocommit makes sure to do the final commit to ensure changes stick around.
AbstractFinderClass in namespace Doctrine\DBAL\Migrations\Finder
Abstract base class for MigrationFinders
MigrationException::alreadyAtVersion() — Method in class MigrationException
AbstractCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
CLI Command for adding and deleting migration versions from the version table.
AbstractCommand::askConfirmation() — Method in class AbstractCommand
ConsoleRunner::addCommands() — Method in class ConsoleRunner
Version::addSql() — Method in class Version
Add some SQL queries to this versions migration

C

$AbstractMigration#connectionProperty in class AbstractMigration
The Doctrine\DBAL\Connection instance we are migrating
ConfigurationClass in namespace Doctrine\DBAL\Migrations\Configuration
Default Migration Configuration object used for configuring an instance of the Migration class. Set the connection, version table name, register migration classes/versions, etc.
Configuration::createMigrationTable() — Method in class Configuration
Create the migration table to track migrations with.
Configuration::connect() — Method in class Configuration
Explicitely opens the database connection. This is done to play nice with DBAL's MasterSlaveConnection. Which, in some cases, connects to a follower when fetching the executed migrations. If a follower is lagging significantly behind that means the migrations system may see unexecuted migrations that were actually executed earlier.
ConnectionLoaderInterfaceClass in namespace Doctrine\DBAL\Migrations\Configuration\Connection
ConnectionLoaderInterface::chosen() — Method in class ConnectionLoaderInterface
read the input and return a Configuration, returns false if the config is not supported
ArrayConnectionConfigurationLoader::chosen() — Method in class ArrayConnectionConfigurationLoader
read the input and return a Configuration, returns false if the config is not supported
ConnectionConfigurationChainLoaderClass in namespace Doctrine\DBAL\Migrations\Configuration\Connection\Loader
ConnectionConfigurationChainLoader::chosen() — Method in class ConnectionConfigurationChainLoader
read the input and return a Configuration, returns false if the config is not supported
ConnectionConfigurationLoaderClass in namespace Doctrine\DBAL\Migrations\Configuration\Connection\Loader
ConnectionConfigurationLoader::chosen() — Method in class ConnectionConfigurationLoader
read the input and return a Configuration, returns false if the config is not supported
ConnectionHelperLoaderClass in namespace Doctrine\DBAL\Migrations\Configuration\Connection\Loader
ConnectionHelperLoader::chosen() — Method in class ConnectionHelperLoader
read the input and return a Configuration, returns false if the config is not supported
MigrationException::configurationFileAlreadyLoaded() — Method in class MigrationException
MigrationException::configurationIncompatibleWithFinder() — Method in class MigrationException
MigrationException::configurationNotValid() — Method in class MigrationException
LazySchemaDiffProvider::createFromSchema() — Method in class LazySchemaDiffProvider
LazySchemaDiffProvider::createToSchema() — Method in class LazySchemaDiffProvider
OrmSchemaProvider::createSchema() — Method in class OrmSchemaProvider
Create the schema to which the database should be migrated.
SchemaDiffProvider::createFromSchema() — Method in class SchemaDiffProvider
SchemaDiffProvider::createToSchema() — Method in class SchemaDiffProvider
SchemaDiffProviderInterface::createFromSchema() — Method in class SchemaDiffProviderInterface
Create the schema that represent the current state of the database.
SchemaDiffProviderInterface::createToSchema() — Method in class SchemaDiffProviderInterface
Create the schema that will represent the future state of the database
SchemaProviderInterface::createSchema() — Method in class SchemaProviderInterface
Create the schema to which the database should be migrated.
StubSchemaProvider::createSchema() — Method in class StubSchemaProvider
Create the schema to which the database should be migrated.
AbstractCommand::configure() — Method in class AbstractCommand
DiffCommand::configure() — Method in class DiffCommand
ExecuteCommand::configure() — Method in class ExecuteCommand
GenerateCommand::configure() — Method in class GenerateCommand
LatestCommand::configure() — Method in class LatestCommand
MigrateCommand::configure() — Method in class MigrateCommand
MigrateCommand::createMigration() — Method in class MigrateCommand
Create a new migration instance to execute the migrations.
StatusCommand::configure() — Method in class StatusCommand
UpToDateCommand::configure() — Method in class UpToDateCommand
VersionCommand::configure() — Method in class VersionCommand
ConsoleRunnerClass in namespace Doctrine\DBAL\Migrations\Tools\Console
Handles running the Console Tools inside Symfony Console context.
ConsoleRunner::createApplication() — Method in class ConsoleRunner
Creates a console application with the given helperset and optional commands.
ConfigurationHelperClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Helper
Class ConfigurationHelper
ConfigurationHelperInterfaceClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Helper

D

AbstractMigration::down() — Method in class AbstractMigration
AbstractFileConfiguration::doLoad() — Method in class AbstractFileConfiguration
Abstract method that each file configuration driver must implement to load the given configuration file whether it be xml, yaml, etc. or something else.
ArrayConfiguration::doLoad() — Method in class ArrayConfiguration
Configuration::dispatchEvent() — Method in class Configuration
Use the connection's event manager to emit an event.
JsonConfiguration::doLoad() — Method in class JsonConfiguration
XmlConfiguration::doLoad() — Method in class XmlConfiguration
YamlConfiguration::doLoad() — Method in class YamlConfiguration
MigrationException::duplicateMigrationVersion() — Method in class MigrationException
DiffCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Command for generate migration classes by comparing your current database schema to your mapping information.

E

EventsClass in namespace Doctrine\DBAL\Migrations
DiffCommand::execute() — Method in class DiffCommand
ExecuteCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Command for executing single migrations up or down manually.
ExecuteCommand::execute() — Method in class ExecuteCommand
GenerateCommand::execute() — Method in class GenerateCommand
LatestCommand::execute() — Method in class LatestCommand
MigrateCommand::execute() — Method in class MigrateCommand
StatusCommand::execute() — Method in class StatusCommand
UpToDateCommand::execute() — Method in class UpToDateCommand
VersionCommand::execute() — Method in class VersionCommand
Version::execute() — Method in class Version
Execute this migration version up or down and and return the SQL.

F

Configuration::formatVersion() — Method in class Configuration
Returns a timestamp version as a formatted date
Configuration::findMigrations() — Method in class Configuration
Find all the migrations in a given directory.
FileQueryWriterClass in namespace Doctrine\DBAL\Migrations
GlobFinder::findMigrations() — Method in class GlobFinder
Find all the migrations in a directory for the given path and namespace.
MigrationFinderInterface::findMigrations() — Method in class MigrationFinderInterface
Find all the migrations in a directory for the given path and namespace.
RecursiveRegexFinder::findMigrations() — Method in class RecursiveRegexFinder
Find all the migrations in a directory for the given path and namespace.
LazySchemaDiffProvider::fromDefaultProxyFacyoryConfiguration() — Method in class LazySchemaDiffProvider
LazySchemaDiffProvider::fromDefaultProxyFactoryConfiguration() — Method in class LazySchemaDiffProvider

G

AbstractMigration::getDescription() — Method in class AbstractMigration
Get migration description
AbstractFileConfiguration::getDirectoryRelativeToFile() — Method in class AbstractFileConfiguration
AbstractFileConfiguration::getFile() — Method in class AbstractFileConfiguration
Configuration::getName() — Method in class Configuration
Returns the name of this set of migrations
Configuration::getOutputWriter() — Method in class Configuration
Returns the OutputWriter instance
Configuration::getDateTime() — Method in class Configuration
Returns the datetime of a migration
Configuration::getConnection() — Method in class Configuration
Returns the Connection instance
Configuration::getMigrationsTableName() — Method in class Configuration
Returns the migration table name
Configuration::getMigrationsColumnName() — Method in class Configuration
Returns the migration column name
Configuration::getQuotedMigrationsColumnName() — Method in class Configuration
Returns the quoted migration column name
Configuration::getMigrationsDirectory() — Method in class Configuration
Returns the new migrations directory where new migration classes are generated
Configuration::getMigrationsNamespace() — Method in class Configuration
Returns the migrations namespace
Configuration::getCustomTemplate() — Method in class Configuration
Returns the custom template path
Configuration::getMigrations() — Method in class Configuration
Get the array of registered migration versions.
Configuration::getVersion() — Method in class Configuration
Returns the Version instance for a given version in the format YYYYMMDDHHMMSS.
Configuration::getMigratedVersions() — Method in class Configuration
Returns all migrated versions from the versions table, in an array.
Configuration::getAvailableVersions() — Method in class Configuration
Returns an array of available migration version numbers.
Configuration::getCurrentVersion() — Method in class Configuration
Returns the current migrated version from the versions table.
Configuration::getPrevVersion() — Method in class Configuration
Returns the version prior to the current version.
Configuration::getNextVersion() — Method in class Configuration
Returns the version following the current version.
Configuration::getRelativeVersion() — Method in class Configuration
Returns the version with the specified offset to the specified version.
Configuration::getDeltaVersion() — Method in class Configuration
Returns the version with the specified to the current version.
Configuration::getNumberOfExecutedMigrations() — Method in class Configuration
Returns the total number of executed migration versions
Configuration::getNumberOfAvailableMigrations() — Method in class Configuration
Returns the total number of available migration versions
Configuration::getLatestVersion() — Method in class Configuration
Returns the latest available migration version.
Configuration::getMigrationsToExecute() — Method in class Configuration
Returns the array of migrations to executed based on the given direction and target version number.
Configuration::generateVersionNumber() — Method in class Configuration
Generate a new migration version. A version is (usually) a datetime string.
Configuration::getQueryWriter() — Method in class Configuration
AutoCommitListener::getSubscribedEvents() — Method in class AutoCommitListener
{@inheritdoc}
MigrationsEventArgs::getConfiguration() — Method in class MigrationsEventArgs
MigrationsEventArgs::getConnection() — Method in class MigrationsEventArgs
MigrationsEventArgs::getDirection() — Method in class MigrationsEventArgs
MigrationsVersionEventArgs::getVersion() — Method in class MigrationsVersionEventArgs
AbstractFinder::getRealPath() — Method in class AbstractFinder
AbstractFinder::getFileSortCallback() — Method in class AbstractFinder
Return callable for files basename uasort
GlobFinderClass in namespace Doctrine\DBAL\Migrations\Finder
A MigrationFinderInterface implementation that uses glob and some special file and class names to load migrations from a directory.
Migration::getSql() — Method in class Migration
Get the array of versions and SQL queries that would be executed for each version but do not execute anything.
LazySchemaDiffProvider::getSqlDiffToMigrate() — Method in class LazySchemaDiffProvider
SchemaDiffProvider::getSqlDiffToMigrate() — Method in class SchemaDiffProvider
SchemaDiffProviderInterface::getSqlDiffToMigrate() — Method in class SchemaDiffProviderInterface
Return an array of sql statement that migrate the database state from the fromSchema to the toSchema.
AbstractCommand::getMigrationConfiguration() — Method in class AbstractCommand
When any (config) command line option is passed to the migration the migrationConfiguration property is set with the new generated configuration.
GenerateCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Command for generating new blank migration classes
GenerateCommand::getTemplate() — Method in class GenerateCommand
GenerateCommand::generateMigration() — Method in class GenerateCommand
ConfigurationHelper::getMigrationConfig() — Method in class ConfigurationHelper
ConfigurationHelper::getName() — Method in class ConfigurationHelper
{@inheritdoc}
ConfigurationHelperInterface::getMigrationConfig() — Method in class ConfigurationHelperInterface
MigrationDirectoryHelper::getMigrationDirectory() — Method in class MigrationDirectoryHelper
MigrationDirectoryHelper::getName() — Method in class MigrationDirectoryHelper
Returns the canonical name of this helper.
MigrationStatusInfosHelper::getMigrationsInfos() — Method in class MigrationStatusInfosHelper
MigrationStatusInfosHelper::getExecutedUnavailableMigrations() — Method in class MigrationStatusInfosHelper
Version::getVersion() — Method in class Version
Returns the string version in the format YYYYMMDDHHMMSS
Version::getConfiguration() — Method in class Version
Returns the Migrations Configuration object instance
Version::getMigration() — Method in class Version
Version::getExecutionState() — Method in class Version
Version::getTime() — Method in class Version
Returns the time this migration version took to execute

H

Configuration::hasVersion() — Method in class Configuration
Check if a version exists.
Configuration::hasVersionMigrated() — Method in class Configuration
Check if a version has been migrated or not yet

I

AbstractMigration::isTransactional() — Method in class AbstractMigration
Indicates the transactional mode of this migration.
MigrationsEventArgs::isDryRun() — Method in class MigrationsEventArgs
IrreversibleMigrationExceptionClass in namespace Doctrine\DBAL\Migrations
Exception to be thrown in the down() methods of migrations that signifies it is an irreversible migration and stops execution.
Version::isMigrated() — Method in class Version
Check if this version has been migrated or not.

J

JsonConfigurationClass in namespace Doctrine\DBAL\Migrations\Configuration
Load migration configuration information from a PHP configuration file.

L

AbstractFileConfiguration::load() — Method in class AbstractFileConfiguration
Load the information from the passed configuration file
AbstractFinder::loadMigrations() — Method in class AbstractFinder
Load the migrations and return an array of thoses loaded migrations
LazySchemaDiffProviderClass in namespace Doctrine\DBAL\Migrations\Provider
GenerateCommand::loadCustomTemplate() — Method in class GenerateCommand
LatestCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Outputs the latest version number.

M

MigrationsEventArgsClass in namespace Doctrine\DBAL\Migrations\Event
MigrationsVersionEventArgsClass in namespace Doctrine\DBAL\Migrations\Event
MigrationDeepFinderInterfaceClass in namespace Doctrine\DBAL\Migrations\Finder
A MigrationDeepFinderInterface is a MigrationFinderInterface, which locates migrations not only in a directory itself, but in subdirectories of this directory, too.
MigrationFinderInterfaceClass in namespace Doctrine\DBAL\Migrations\Finder
MigrationFinderInterface implementations locate migrations (classes that extend Doctrine\DBAL\Migrations\AbstractMigration) in a directory.
MigrationClass in namespace Doctrine\DBAL\Migrations
Class for running migrations to the current version or a manually specified version.
Migration::migrate() — Method in class Migration
Run a migration to the current version or the given target version.
MigrationExceptionClass in namespace Doctrine\DBAL\Migrations
Class for Migrations specific exceptions
MigrationException::migrationsNamespaceRequired() — Method in class MigrationException
MigrationException::migrationsDirectoryRequired() — Method in class MigrationException
MigrationException::migrationClassNotFound() — Method in class MigrationException
MigrationException::migrationNotConvertibleToSql() — Method in class MigrationException
MigrationsVersionClass in namespace Doctrine\DBAL\Migrations
MigrateCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Command for executing a migration to a specified version or the latest available version.
MigrationDirectoryHelperClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Helper
Class ConfigurationHelper
MigrationStatusInfosHelperClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Helper
Version::markMigrated() — Method in class Version
Version::markNotMigrated() — Method in class Version

N

MigrationException::noMigrationsToExecute() — Method in class MigrationException

O

AutoCommitListener::onMigrationsMigrated() — Method in class AutoCommitListener
OutputWriterClass in namespace Doctrine\DBAL\Migrations
Simple class for outputting information from migrations.
OrmSchemaProviderClass in namespace Doctrine\DBAL\Migrations\Provider
A schema provider that uses the doctrine ORM to generate schemas.
AbstractCommand::outputHeader() — Method in class AbstractCommand

P

$AbstractMigration#platformProperty in class AbstractMigration
Reference to the DatabasePlatform instance referenced by $_connection
AbstractMigration::preUp() — Method in class AbstractMigration
AbstractMigration::postUp() — Method in class AbstractMigration
AbstractMigration::preDown() — Method in class AbstractMigration
AbstractMigration::postDown() — Method in class AbstractMigration

Q

QueryWriterClass in namespace Doctrine\DBAL\Migrations

R

Configuration::registerMigrationsFromDirectory() — Method in class Configuration
Register migrations from a given directory. Recursively finds all files with the pattern VersionYYYYMMDDHHMMSS.php as the filename and registers them as migrations.
Configuration::registerMigration() — Method in class Configuration
Register a single migration version to be executed by a AbstractMigration class.
Configuration::registerMigrations() — Method in class Configuration
Register an array of migrations. Each key of the array is the version and the value is the migration class name.
Configuration::resolveVersionAlias() — Method in class Configuration
Returns the version number from an alias.
AbstractFinder::requireOnce() — Method in class AbstractFinder
RecursiveRegexFinderClass in namespace Doctrine\DBAL\Migrations\Finder
A MigrationFinderInterface implementation that uses a RegexIterator along with a RecursiveDirectoryIterator.
ConsoleRunner::run() — Method in class ConsoleRunner
Runs console with the given helperset.

S

$AbstractMigration#smProperty in class AbstractMigration
Reference to the SchemaManager instance referenced by $_connection
AbstractMigration::skipIf() — Method in class AbstractMigration
Skip this migration (but not the next ones) if condition evaluates to TRUE.
AbstractFileConfiguration::setConfiguration() — Method in class AbstractFileConfiguration
Configuration::setName() — Method in class Configuration
Set the name of this set of migrations
Configuration::setOutputWriter() — Method in class Configuration
Sets the output writer.
Configuration::setMigrationsTableName() — Method in class Configuration
Set the migration table name
Configuration::setMigrationsColumnName() — Method in class Configuration
Set the migration column name
Configuration::setMigrationsDirectory() — Method in class Configuration
Set the new migrations directory where new migration classes are generated
Configuration::setMigrationsNamespace() — Method in class Configuration
Set the migrations namespace
Configuration::setCustomTemplate() — Method in class Configuration
Set the custom template path
Configuration::setMigrationsFinder() — Method in class Configuration
Set the implementation of the migration finder.
Configuration::setMigrationsAreOrganizedByYear() — Method in class Configuration
Configuration::setMigrationsAreOrganizedByYearAndMonth() — Method in class Configuration
Configuration::setIsDryRun() — Method in class Configuration
Migration::setNoMigrationException() — Method in class Migration
SchemaDiffProviderClass in namespace Doctrine\DBAL\Migrations\Provider
SchemaDiffProviderInterfaceClass in namespace Doctrine\DBAL\Migrations\Provider
Generates Schema objects to be passed to the migrations class.
SchemaProviderInterfaceClass in namespace Doctrine\DBAL\Migrations\Provider
Generates Schema objects for the diff command. A schema provider should return the schema to which the database should be migrated.
StubSchemaProviderClass in namespace Doctrine\DBAL\Migrations\Provider
A schemea provider implementation that just returns the schema its given.
SkipMigrationExceptionClass in namespace Doctrine\DBAL\Migrations
SqlFileWriterClass in namespace Doctrine\DBAL\Migrations
AbstractCommand::setMigrationConfiguration() — Method in class AbstractCommand
$DiffCommand#schemaProviderProperty in class DiffCommand
StatusCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Command to view the status of a set of migrations.

T

AbstractMigration::throwIrreversibleMigrationException() — Method in class AbstractMigration
SqlFileWriter::throwInvalidArgumentException() — Method in class SqlFileWriter

U

AbstractMigration::up() — Method in class AbstractMigration
MigrationException::unknownMigrationVersion() — Method in class MigrationException
UpToDateCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Command to show if your schema is up-to-date.

V

$AbstractMigration#versionProperty in class AbstractMigration
Reference to the Version instance representing this migration
Configuration::validate() — Method in class Configuration
Validation that this instance has all the required properties configured
MigrationsVersion::VERSION() — Method in class MigrationsVersion
VersionCommandClass in namespace Doctrine\DBAL\Migrations\Tools\Console\Command
Command for manually adding and deleting migration versions from the version table.
VersionClass in namespace Doctrine\DBAL\Migrations
Class which wraps a migration version and allows execution of the individual migration version up or down method.

W

AbstractMigration::warnIf() — Method in class AbstractMigration
Print a warning message if the condition evaluates to TRUE.
AbstractMigration::write() — Method in class AbstractMigration
FileQueryWriter::write() — Method in class FileQueryWriter
TODO: move SqlFileWriter's behaviour to this class - and kill it with fire (on the next major release)
Migration::writeSqlFile() — Method in class Migration
Write a migration SQL file to the given path
OutputWriter::write() — Method in class OutputWriter
Write output using the configured closure.
QueryWriter::write() — Method in class QueryWriter
SqlFileWriter::write() — Method in class SqlFileWriter
Version::writeSqlFile() — Method in class Version
Write a migration SQL file to the given path

X

XmlConfigurationClass in namespace Doctrine\DBAL\Migrations\Configuration
Load migration configuration information from a XML configuration file.

Y

YamlConfigurationClass in namespace Doctrine\DBAL\Migrations\Configuration
Load migration configuration information from a YAML configuration file.
MigrationException::yamlConfigurationNotAvailable() — Method in class MigrationException

_

AbstractMigration::__construct() — Method in class AbstractMigration
Configuration::__construct() — Method in class Configuration
Construct a migration configuration object.
ArrayConnectionConfigurationLoader::__construct() — Method in class ArrayConnectionConfigurationLoader
ConnectionConfigurationChainLoader::__construct() — Method in class ConnectionConfigurationChainLoader
ConnectionConfigurationLoader::__construct() — Method in class ConnectionConfigurationLoader
ConnectionHelperLoader::__construct() — Method in class ConnectionHelperLoader
ConnectionHelperLoader constructor.
MigrationsEventArgs::__construct() — Method in class MigrationsEventArgs
MigrationsVersionEventArgs::__construct() — Method in class MigrationsVersionEventArgs
FileQueryWriter::__construct() — Method in class FileQueryWriter
Migration::__construct() — Method in class Migration
Construct a Migration instance
OutputWriter::__construct() — Method in class OutputWriter
LazySchemaDiffProvider::__construct() — Method in class LazySchemaDiffProvider
OrmSchemaProvider::__construct() — Method in class OrmSchemaProvider
SchemaDiffProvider::__construct() — Method in class SchemaDiffProvider
StubSchemaProvider::__construct() — Method in class StubSchemaProvider
SqlFileWriter::__construct() — Method in class SqlFileWriter
DiffCommand::__construct() — Method in class DiffCommand
ConfigurationHelper::__construct() — Method in class ConfigurationHelper
MigrationDirectoryHelper::__construct() — Method in class MigrationDirectoryHelper
MigrationStatusInfosHelper::__construct() — Method in class MigrationStatusInfosHelper
Version::__construct() — Method in class Version
Version::__toString() — Method in class Version