Browse Source

feat:购物车增加商品sku字段

antshop
linyaostalker 5 years ago
parent
commit
6b59cbe598
  1. 20
      backend/modules/shop/migrations/m191217_013625_add_column_sku_value_in_table_ats_cart.php

20
backend/modules/shop/migrations/m191217_013625_add_column_sku_value_in_table_ats_cart.php

@ -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;
}
}
Loading…
Cancel
Save