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

44 lines
662 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?php
use common\components\Migration\MigrationWithDefaultOptions;
class m210629_171450_add_optimization_index extends MigrationWithDefaultOptions
{
public function safeUp()
{
$this->createIndex('idx_bachelor_egeresult_disc_id_ex_frm_id', 'bachelor_egeresult',['cget_discipline_id', 'cget_exam_form_id']);
$this->createIndex('idx_cget_entrance_test_disc_id_ex_frm_id', 'cget_entrance_test',['subject_ref_id', 'entrance_test_result_source_ref_id']);
}
public function safeDown()
{
echo "m210629_171450_add_optimization_index cannot be reverted.\n";
return false;
}
}