concrete/src/Updater/Migrations/Configuration.php
public function forceInitialMigration($reference, $criteria = self::FORCEDMIGRATION_INCLUSIVE)
    {
        $reference = trim((string) $reference);
        if ($reference === '') {
            throw new Exception(t('Invalid initial migration reference.'));
        }
        if (!in_array($criteria, [static::FORCEDMIGRATION_INCLUSIVE, static::FORCEDMIGRATION_EXCLUSIVE], true)) {
            throw new Exception(t('Invalid initial migration criteria.'));
        }

        // Remove possible 'Version' prefix from the migration identifier.
        // This allows a user to also use VersionXXXXXXXXXXXX, which corresponds with the class name.
        $reference = str_replace('Version', '', $reference);

        $migration = $this->findInitialMigration($reference, $criteria);
        if ($migration === null) {
            throw new Exception(t('Unable to find a migration with identifier %s', $reference));
        }
        $this->forcedInitialMigration = $migration;
    }
public function forceInitialMigration($reference, $criteria = self::FORCEDMIGRATION_INCLUSIVE)
    {
        $reference = trim((string) $reference);
        if ($reference === '') {
            throw new Exception(t('Invalid initial migration reference.'));
        }
        if (!in_array($criteria, [static::FORCEDMIGRATION_INCLUSIVE, static::FORCEDMIGRATION_EXCLUSIVE], true)) {
            throw new Exception(t('Invalid initial migration criteria.'));
        }

        // Remove possible 'Version' prefix from the migration identifier.
        // This allows a user to also use VersionXXXXXXXXXXXX, which corresponds with the class name.
        $reference = str_replace('Version', '', $reference);

        $migration = $this->findInitialMigration($reference, $criteria);
        if ($migration === null) {
            throw new Exception(t('Unable to find a migration with identifier %s', $reference));
        }
        $this->forcedInitialMigration = $migration;
    }
public function forceInitialMigration ( $ reference , $ criteria = self :: FORCEDMIGRATION_INCLUSIVE ) { $ reference = trim ( ( string ) $ reference ) ; if ( $ reference === '' ) { throw new Exception ( t ( 'Invalid initial migration reference.' ) ) ; } if ( ! in_array ( $ criteria , [ static :: FORCEDMIGRATION_INCLUSIVE , static :: FORCEDMIGRATION_EXCLUSIVE ] , true ) ) { throw new Exception ( t ( 'Invalid initial migration criteria.' ) ) ; } // Remove possible 'Version' prefix from the migration identifier. // This allows a user to also use VersionXXXXXXXXXXXX, which corresponds with the class name. $ reference = str_replace ( 'Version' , '' , $ reference ) ; $ migration = $ this -> findInitialMigration ( $ reference , $ criteria ) ; if ( $ migration === null ) { throw new Exception ( t ( 'Unable to find a migration with identifier %s' , $ reference ) ) ; } $ this -> forcedInitialMigration = $ migration ; }
Force the initial migration, using a specific point.

@param string $reference A concrete5 version (eg. '8.3.1') or a migration identifier (eg '20171218000000')
@param string $criteria One of the FORCEDMIGRATION_... constants
Force the initial migration using a specific point .