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

30 lines
860 B
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 m220525_090051_rename_texts extends MigrationWithDefaultOptions
{
public function safeUp()
{
\common\models\settings\TextSetting::updateAll([
'description' => 'Текст сообщения, напоминающего о необходимости нажать "Подать заявление"',
],
[
'name' => 'can_send_app_message_if_first_try',
]);
\common\models\settings\TextSetting::updateAll([
'description' => 'Текст сообщения, напоминающего о необходимости нажать "Обновить заявление"',
],
[
'name' => 'can_send_app_message_if_second_attempt',
]);
}
}