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

46 lines
851 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
use common\components\Migration\MigrationWithDefaultOptions;
class m220504_072655_change_text_settings extends MigrationWithDefaultOptions
{
public function safeUp()
{
$this->update(
'{{%text_settings}}',
['category' => 13],
['name' => 'applications_top_text']
);
$this->update(
'{{%text_settings}}',
['category' => 13],
['name' => 'applications_bottom_text']
);
}
public function safeDown()
{
$this->update(
'{{%text_settings}}',
['category' => 4],
['name' => 'applications_top_text']
);
$this->update(
'{{%text_settings}}',
['category' => 4],
['name' => 'applications_bottom_text']
);
}
}