interface DocumentMigration (View source)

CouchDB documents can be migrated whenever they are loaded.

Methods

array
migrate(array $data)

Accept a CouchDB document and migrate data, return new document.

Details

array migrate(array $data)

Accept a CouchDB document and migrate data, return new document.

This method has to return the original data, when no migration needs to take place.

Parameters

array $data

Return Value

array