portal.mkgtu.ru/common/migrations/db/m230119_133039_add_code_set...

36 lines
773 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
use common\components\Migration\MigrationWithDefaultOptions;
class m230119_133039_add_code_setting extends MigrationWithDefaultOptions
{
private const TN = '{{%code_settings}}';
public function safeUp()
{
$this->insert(self::TN, [
'name' => 'not_verified_status_document_checker',
'description' => 'Значение статуса «Не проверен» для проверяемых документов (в ЕПГУ, ФДРО, ...)',
'value' => '',
]);
Yii::$app->db->schema->refresh();
}
public function safeDown()
{
$this->delete(self::TN, ['name' => ['not_verified_status_document_checker']]);
Yii::$app->db->schema->refresh();
}
}