You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 line
642B

  1. <?php
  2. use yii\db\Migration;
  3. /**
  4. * Class m240514_130206_create_indexes_performance
  5. */
  6. class m240514_130206_create_indexes_performance extends Migration
  7. {
  8. /**
  9. * {@inheritdoc}
  10. */
  11. public function safeUp()
  12. {
  13. $this->createIndex('id_point_sale', 'point_sale_distribution', 'id_point_sale');
  14. $this->createIndex('id_distribution', 'point_sale_distribution', 'id_distribution');
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function safeDown()
  20. {
  21. $this->dropIndex('id_point_sale', 'point_sale_distribution');
  22. $this->dropIndex('id_distribution', 'point_sale_distribution');
  23. }
  24. }