add migration for payment later db index2

This commit is contained in:
2016-07-29 17:32:05 +02:00
parent d2d44e51d9
commit a20f91470b
3 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m160729_060405_create_index_doorlog_customer__created_at_direction extends Migration
{
public function up()
{
$this->execute("create index fitweb_door_log_enter on door_log (id_customer,created_at,direction )");
}
public function down()
{
echo "m160729_060405_create_index_doorlog_customer__created_at_direction cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}