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

31 lines
766 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use common\components\Migration\MigrationWithDefaultOptions;
class m221214_082858_add_application_setting extends MigrationWithDefaultOptions
{
public function safeUp()
{
$this->insert('{{%applications_settings}}', [
'name' => 'use_one_s_settings_for_fields_to_be_required',
'description' => 'Использовать настройки обязательности заполнения полей документов из 1С:Университет ПРОФ',
'type' => 'checkbox',
'value' => '0',
]);
}
public function safeDown()
{
$this->delete('{{%applications_settings}}', ['name' => 'use_one_s_settings_for_fields_to_be_required']);
}
}