-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9b37f6
commit 6a15e79
Showing
3 changed files
with
56 additions
and
2 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
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
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,29 @@ | ||
<?php | ||
|
||
namespace lo\plugins\migrations; | ||
|
||
class m170105_094960_seo_clear_url extends Migration | ||
{ | ||
|
||
public function up() | ||
{ | ||
$this->insert($this->tn(self::TBL_EVENT), [ | ||
'id' => 5, | ||
'app_id' => self::APP_FRONTEND, | ||
'plugin_id' => self::EVENTS_CORE, // Hello, world | ||
'category_id' => self::CAT_SEO, | ||
'trigger_class' => 'yii\base\Application', | ||
'trigger_event' => 'beforeRequest', | ||
'handler_class' => 'lo\plugins\core\SeoHandler', | ||
'handler_method' => 'clearUrl', | ||
'data' => '{}', | ||
'status' => self::EVENTS_ACTIVE | ||
]); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->delete($this->tn(self::TBL_EVENT), ['id' => 5]); | ||
} | ||
|
||
} |