Browse Source

订单商品表增加sku_id字段

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
7f6b0ed9bb
  1. 20
      console/migrations/m191203_022720_add_column_sku_id_in_table_ats_order_goods.php

20
console/migrations/m191203_022720_add_column_sku_id_in_table_ats_order_goods.php

@ -0,0 +1,20 @@
<?php
use yii\db\Migration;
/**
* Class m191203_022720_add_column_sku_id_in_table_ats_order_goods
*/
class m191203_022720_add_column_sku_id_in_table_ats_order_goods extends Migration
{
public function up()
{
$this->addColumn('ats_order_goods', 'sku_id', $this->integer(11)->defaultValue(null)->comment('sku_id'));
}
public function down()
{
$this->dropColumn('ats_order_goods', 'sku_id');
return true;
}
}
Loading…
Cancel
Save