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

21 lines
539 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 backend\models\DictionaryUpdateHistory;
use common\components\Migration\MigrationWithDefaultOptions;
class m230314_094932_skip_dictionary_update extends MigrationWithDefaultOptions
{
public function up()
{
try {
DictionaryUpdateHistory::setUpdateTime('loadFakeDictionary', time() + 3600);
} catch (Throwable $e) {
echo "Не удалось избежать обновления справочников по причине: {$e->getMessage()}";
}
}
}