Configuration
class Configuration extends Configuration (View source)
Constants
| FORCEDMIGRATION_INCLUSIVE | 
                     Forced initial migration: inclusive.  | 
            
| FORCEDMIGRATION_EXCLUSIVE | 
                     Forced initial migration: exclusive.  | 
            
Properties
| protected null|Version | $forcedInitialMigration | Forced initial migration.  | 
                
Methods
Construct a migration configuration object.
Force the initial migration to be the least recent repeatable one.
Force the initial migration, using a specific point.
Get the forced initial migration (if set).
Reset the forced initial migration.
This is a stupid requirement, but basically, we grab the lowest version number in our system database migrations table, and we loop through all migrations in our file system and for any of those LOWER than the lowest one in the table, we can assume they are included in this migration. We then manually insert these rows into the SystemDatabaseMigrations table so Doctrine isn't stupid and attempt to apply them.
{@inheritdoc}
Get the initial migration given a reference (in form YYYYMMDDhhmmss or as a core version).
Get the initial migration starting from its identifier (in form YYYYMMDDhhmmss).
Get the initial migration starting from a core version.
Details
        
                            
    __construct(bool $registerMigrations = true)
        
    
    Construct a migration configuration object.
        
                            
    forceMaxInitialMigration()
        
    
    Force the initial migration to be the least recent repeatable one.
        
                            
    forceInitialMigration(string $reference, string $criteria = self::FORCEDMIGRATION_INCLUSIVE)
        
    
    Force the initial migration, using a specific point.
        
                            Version|null
    getForcedInitialMigration()
        
    
    Get the forced initial migration (if set).
        
                            
    resetForceInitialMigration()
        
    
    Reset the forced initial migration.
        
                            
    registerPreviousMigratedVersions()
        
    
    This is a stupid requirement, but basically, we grab the lowest version number in our system database migrations table, and we loop through all migrations in our file system and for any of those LOWER than the lowest one in the table, we can assume they are included in this migration. We then manually insert these rows into the SystemDatabaseMigrations table so Doctrine isn't stupid and attempt to apply them.
        
                            
    getMigrationsToExecute($direction, $to)
        
    
    {@inheritdoc}
        
                    protected        Version|null
    findInitialMigration(string $reference, string $criteria)
        
    
    Get the initial migration given a reference (in form YYYYMMDDhhmmss or as a core version).
        
                    protected        Version|null
    findInitialMigrationByIdentifier(string $identifier, string $criteria)
        
    
    Get the initial migration starting from its identifier (in form YYYYMMDDhhmmss).
        
                    protected        Version|null
    findInitialMigrationByCoreVersion(string $coreVersion, string $criteria)
        
    
    Get the initial migration starting from a core version.