|
@ -0,0 +1,20 @@ |
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
use yii\db\Migration; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Class m191217_013625_add_column_sku_value_in_table_ats_cart |
|
|
|
|
|
*/ |
|
|
|
|
|
class m191217_013625_add_column_sku_value_in_table_ats_cart extends Migration |
|
|
|
|
|
{ |
|
|
|
|
|
public function up() |
|
|
|
|
|
{ |
|
|
|
|
|
$this->addColumn('ats_cart', 'sku_value', $this->string(120)->defaultValue('')->comment('商品sku')); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function down() |
|
|
|
|
|
{ |
|
|
|
|
|
$this->dropColumn('ats_cart', 'sku_value'); |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
} |