|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
-
-
- use yii\db\Migration;
-
-
- class m240514_130206_create_indexes_performance extends Migration
- {
-
-
- public function safeUp()
- {
- $this->createIndex('id_point_sale', 'point_sale_distribution', 'id_point_sale');
- $this->createIndex('id_distribution', 'point_sale_distribution', 'id_distribution');
- }
-
-
-
- public function safeDown()
- {
- $this->dropIndex('id_point_sale', 'point_sale_distribution');
- $this->dropIndex('id_distribution', 'point_sale_distribution');
- }
- }
|