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

27 lines
413 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?php
use common\components\Migration\MigrationWithDefaultOptions;
use common\models\settings\TextSetting;
class m220405_103554_remove_dummy_texts extends MigrationWithDefaultOptions
{
public function safeUp()
{
TextSetting::updateAll(
[
'value' => '',
],
[
'value' => 'dummy text',
]
);
}
}