Pārlūkot izejas kodu

[Boutique] Commander : optimisation des temps de chargement

feature/rotating_product
Guillaume Bourgeois pirms 6 mēnešiem
vecāks
revīzija
a17bfabf04
1 mainītis faili ar 27 papildinājumiem un 0 dzēšanām
  1. +27
    -0
      console/migrations/m240514_130206_create_indexes_performance.php

+ 27
- 0
console/migrations/m240514_130206_create_indexes_performance.php Parādīt failu

@@ -0,0 +1,27 @@
<?php

use yii\db\Migration;

/**
* Class m240514_130206_create_indexes_performance
*/
class m240514_130206_create_indexes_performance extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createIndex('id_point_sale', 'point_sale_distribution', 'id_point_sale');
$this->createIndex('id_distribution', 'point_sale_distribution', 'id_distribution');
}

/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropIndex('id_point_sale', 'point_sale_distribution');
$this->dropIndex('id_distribution', 'point_sale_distribution');
}
}

Notiek ielāde…
Atcelt
Saglabāt