@@ -18,7 +18,7 @@ class VersionStorage
1818 private $ storageNodeName ;
1919 private $ initialized = false ;
2020
21- public function __construct (SessionInterface $ session , $ storageNodeName = 'phpcrMigrations :versions ' )
21+ public function __construct (SessionInterface $ session , $ storageNodeName = 'jcr :versions ' )
2222 {
2323 $ this ->session = $ session ;
2424 $ this ->storageNodeName = $ storageNodeName ;
@@ -35,11 +35,11 @@ public function init()
3535
3636 if (!$ nodeTypeManager ->hasNodeType ('phpcrMigration:version ' )) {
3737 $ nodeTypeManager ->registerNodeTypesCnd (<<<EOT
38- <phpcrMigrations = 'http://www.danteech.com/phpcr-migrations'>
39- [phpcrMigrations :version] > nt:base, mix:created
38+ <phpcrmig = 'http://www.danteech.com/phpcr-migrations'>
39+ [phpcrmig :version] > nt:base, mix:created
4040
41- [phpcrMigrations :versions] > nt:base
42- +* (phpcrMigrations :version)
41+ [phpcrmig :versions] > nt:base
42+ +* (phpcrmig :version)
4343EOT
4444 , true );
4545 }
@@ -49,7 +49,7 @@ public function init()
4949 if ($ rootNode ->hasNode ($ this ->storageNodeName )) {
5050 $ storageNode = $ rootNode ->getNode ($ this ->storageNodeName );
5151 } else {
52- $ storageNode = $ rootNode ->addNode ($ this ->storageNodeName , 'phpcrMigrations :versions ' );
52+ $ storageNode = $ rootNode ->addNode ($ this ->storageNodeName , 'phpcrmig :versions ' );
5353 }
5454
5555 $ this ->storageNode = $ storageNode ;
@@ -94,6 +94,6 @@ public function add($timestamp)
9494 {
9595 $ this ->init ();
9696
97- $ node = $ this ->storageNode ->addNode ($ timestamp , 'phpcrMigrations :version ' );
97+ $ node = $ this ->storageNode ->addNode ($ timestamp , 'phpcrmig :version ' );
9898 }
9999}
0 commit comments