-
Notifications
You must be signed in to change notification settings - Fork 0
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
3b00d3f
commit da73b1b
Showing
2 changed files
with
29 additions
and
1 deletion.
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,24 @@ | ||
<?php | ||
/** | ||
* @author Semenov Alexander <[email protected]> | ||
* @link http://skeeks.com/ | ||
* @copyright 2010 SkeekS (СкикС) | ||
* @date 28.08.2015 | ||
*/ | ||
|
||
use yii\db\Migration; | ||
|
||
class m241230_092000__alter_table__cms_agent extends Migration | ||
{ | ||
public function safeUp() | ||
{ | ||
$tableName = "cms_agent"; | ||
$this->alterColumn($tableName, "is_period", $this->integer(1)->notNull()->defaultValue(0)); | ||
} | ||
|
||
public function safeDown() | ||
{ | ||
echo "m200410_111000__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