Skip to content

Commit aa6c6d7

Browse files
committed
Added migration instructions
1 parent a9b85f5 commit aa6c6d7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,34 @@ Changelog
88
* `DataFixtures/LoadCmsData` renamed and moved to DataFixtures/Phpcr
99
* PHPCR documents moved from Document to Doctrine/Phpcr
1010

11+
Migration instructions:
12+
13+
1. Set "addLocalePattern" flag to existing MultilangPage documents:
14+
15+
````bash
16+
./app/console doctrine:phpcr:nodes:update --query="SELECT * FROM [nt:unstructured] WHERE phpcr:class = \"Symfony\\Cmf\\Bundle\\SimpleCmsBundle\\Document\\MultilangPage\"" --apply-closure="\$node->setProperty('addLocalePattern', true);"
17+
````
18+
19+
2. Rename classes:
20+
21+
````bash
22+
export CMFNS="Symfony\\Cmf\\Bundle\\SimpleCmsBundle"
23+
./app/console doctrine:phpcr:document:reclass \
24+
$CMFNS"\\Document\\MultilangPage" \
25+
$CMFNS"\\Doctrine\\Phpcr\\Page"
26+
./app/console doctrine:phpcr:document:reclass \
27+
$CMFNS"\\Document\\MultilangRedirectRoute" \
28+
$CMFNS"\\Doctrine\\Phpcr\\MultilangRedirectRoute"
29+
./app/console doctrine:phpcr:document:reclass \
30+
$CMFNS"\\Document\\MultilangRoute" \
31+
$CMFNS"\\Doctrine\\Phpcr\\MultilangRoute"
32+
./app/console doctrine:phpcr:document:reclass \
33+
$CMFNS"\\Document\\MultilangRouteProvider" \
34+
$CMFNS"\\Doctrine\\Phpcr\\MultilangRouteProvider"
35+
./app/console doctrine:phpcr:document:reclass \
36+
$CMFNS"\\Document\\Page" \
37+
$CMFNS"\\Doctrine\\Phpcr\\Page"
38+
1139
* **2013-08-04**: Changed name of Sonata route names / patterns - now /admin/cmf/simplecms/foo instead of /admin/bundle/simplecms/foo
1240

1341
1.0.0-beta3

0 commit comments

Comments
 (0)