-
Notifications
You must be signed in to change notification settings - Fork 65
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
f91d9ac
commit 15de4ce
Showing
8 changed files
with
122 additions
and
4 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
26 changes: 26 additions & 0 deletions
26
src/migrations/m191004_015515__alter_table__cms_content_element.php
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,26 @@ | ||
<?php | ||
/** | ||
* @author Semenov Alexander <semenov@skeeks.com> | ||
* @link http://skeeks.com/ | ||
* @copyright 2010 SkeekS (СкикС) | ||
* @date 28.08.2015 | ||
*/ | ||
|
||
use yii\db\Schema; | ||
use yii\db\Migration; | ||
|
||
class m191004_015515__alter_table__cms_content_element extends Migration | ||
{ | ||
|
||
public function safeUp() | ||
{ | ||
$this->addColumn("{{%cms_content_element}}", "seo_h1", $this->string(255)->notNull()); | ||
$this->createIndex("seo_h1", "{{%cms_content_element}}", "seo_h1"); | ||
} | ||
|
||
public function safeDown() | ||
{ | ||
echo "m191004_015515__alter_table__cms_content_element cannot be reverted.\n"; | ||
return false; | ||
} | ||
} |
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,26 @@ | ||
<?php | ||
/** | ||
* @author Semenov Alexander <semenov@skeeks.com> | ||
* @link http://skeeks.com/ | ||
* @copyright 2010 SkeekS (СкикС) | ||
* @date 28.08.2015 | ||
*/ | ||
|
||
use yii\db\Schema; | ||
use yii\db\Migration; | ||
|
||
class m191004_015615__alter_table__cms_tree extends Migration | ||
{ | ||
|
||
public function safeUp() | ||
{ | ||
$this->addColumn("{{%cms_tree}}", "seo_h1", $this->string(255)->notNull()); | ||
$this->createIndex("seo_h1", "{{%cms_tree}}", "seo_h1"); | ||
} | ||
|
||
public function safeDown() | ||
{ | ||
echo "m191004_015515__alter_table__cms_content_element cannot be reverted.\n"; | ||
return false; | ||
} | ||
} |
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
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