c3d64258
Mihail
merge with server
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
use yii\db\Schema;
use yii\db\Migration;
class m150922_144040_change_Importer_dataPrice extends Migration
{
public function up()
{
$this->alterColumn('{{%importer}}','price_date_update','TIMESTAMP' );
$this->createIndex('price_date', '{{%importer}}', 'price_date_update', false);
}
public function down()
{
$this->alterColumn('{{%importer}}','price_date','varchar(15)' );
$this->dropIndex('price_date', '{{%importer}}');
}
}
|