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

21 lines
539 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?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()}";
}
}
}