abstract class AbstractMigration (View source)

Migration base class.

Methods

__construct(CouchDBClient $client)

No description

void
execute()

Execute migration by iterating over all documents in batches of 100.

array|bool|null
migrate(array $docData)

Return an array of to migrate to document data or null if this document should not be migrated.

Details

__construct(CouchDBClient $client)

Parameters

CouchDBClient $client

void execute()

Execute migration by iterating over all documents in batches of 100.

Return Value

void

Exceptions

RuntimeException

abstract protected array|bool|null migrate(array $docData)

Return an array of to migrate to document data or null if this document should not be migrated.

Parameters

array $docData

Return Value

array|bool|null $docData