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

45 lines
1.3 KiB
PHP
Executable File
Raw 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 m190423_113843_update_1c_discription extends MigrationWithDefaultOptions
{
public function safeUp()
{
$this->update('{{%text_settings}}', ['value' => 'Получение информации из "1С:Университет ПРОФ" возможно после одобрения заявления модератором'], [
'name' => 'load_from_1c_info'
]);
}
public function safeDown()
{
$this->update('{{%text_settings}}', ['value' => 'Получение информации из 1С возможно после подачи заявления'], [
'name' => 'load_from_1c_info'
]);
}
public function up()
{
$this->update('{{%text_settings}}', ['value' => 'Получение информации из "1С:Университет ПРОФ" возможно после одобрения заявления модератором'], [
'name' => 'load_from_1c_info'
]);
}
public function down()
{
$this->update('{{%text_settings}}', ['value' => 'Получение информации из 1С возможно после подачи заявления'], [
'name' => 'load_from_1c_info'
]);
}
}