-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from neos/code-migration
TASK: Migration for Settings and NodeTypes
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
namespace Neos\Seo\Core\Migrations; | ||
|
||
/* | ||
* This file is part of the Neos.Seo package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
/** | ||
* Migrate to new namespace | ||
*/ | ||
class Version20170127154600 extends AbstractMigration | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getIdentifier() | ||
{ | ||
return 'Neos.Seo-20170127154600'; | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
$this->moveSettingsPaths('Neos.Neos.Seo', 'Neos.Seo'); | ||
$this->searchAndReplace('Neos.Neos.Seo:', 'Neos.Seo:'); | ||
$this->searchAndReplace('resource://TYPO3.Neos.Seo/', 'resource://Neos.Seo/'); | ||
} | ||
} |