src/log/migrations/m171130_084513_setting.php
<?php
use yii\db\Migration;
/**
* Class m010101_111111_setting
*/
class m171130_084513_setting extends Migration
{
/**
* @inheritdoc
*/
public function up ()
{
$this->insert('setting', [ 'name' => 'sentry_dsn', 'value' => '', 'description' => 'DSN Sentry.', 'type' => 'url', 'group' => 'sentry' ]);
$this->insert('setting', [ 'name' => 'sentry_use', 'value' => '0', 'description' => 'Использовать Sentry.', 'type' => 'boolean', 'group' => 'sentry' ]);
}
/**
* @inheritdoc
*/
public function down ()
{
$this->delete('setting', [ 'name' => [ 'sentry_dsn', 'sentry_use' ] ]);
}
}