forked from doctrine/couchdb-odm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UPGRADE
50 lines (35 loc) · 1.49 KB
/
UPGRADE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Upgrade from Alpha2 to Alpha3
=============================
Changed Annotation Indexing notation
------------------------------------
The notation to index a class or property as searchable through a repository using a CouchDB
view has changed from:
/** @Document(indexed=true) */
class User
{
/** @Field(indexed=true) */
private $username;
}
to:
/** @Document @Index */
class User
{
/** @Field @Index */
private $username;
}
Changed XML and YAML Indexing Attribute
---------------------------------------
The attribute for indexing classes or properties in XML and YAML was renamed from "indexed" to "index".
Upgrade from Alpha 1 to Alpha2
==============================
Metadata Document representation changed
----------------------------------------
The Metadata representation of Doctrine mapped CouchDB documents changed significantly.
To migrate your old data you have to call:
php doctrine-couchdb.php couchdb:migrate "Doctrine\ODM\CouchDB\Tools\Migrations\Alpha2Migration"
To make this work you have to put your own doctrine-couchdb.php in your project. You can copy
it from bin/ or sandbox/ folders of the CouchDB migration. Make sure to also ship a cli-config.php
script like shown in the sandbox/cli-config.php
To migrate your doctrine associations and repositories, call:
php doctrine-couchdb.php couchdb:odm:update-design-doc doctrine_associations
php doctrine-couchdb.php couchdb:odm:update-design-doc doctrine_repositories