|
|
@ -0,0 +1,26 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
use yii\db\Migration; |
|
|
|
|
|
|
|
/** |
|
|
|
* Class m191207_004848_add_columns_is_taking_is_express_express_type_uniform_postage_in_table_atg_goods |
|
|
|
*/ |
|
|
|
class m191207_004848_add_columns_is_taking_is_express_express_type_uniform_postage_in_table_atg_goods extends Migration |
|
|
|
{ |
|
|
|
public function up() |
|
|
|
{ |
|
|
|
$this->addColumn('atg_goods', 'is_taking', $this->tinyInteger(1)->defaultValue(0)->notNull()->comment('是否自提')); |
|
|
|
$this->addColumn('atg_goods', 'is_express', $this->tinyInteger(1)->defaultValue(0)->notNull()->comment('是否快递发货')); |
|
|
|
$this->addColumn('atg_goods', 'express_type', $this->tinyInteger(2)->defaultValue(0)->comment('快递运费方式')); |
|
|
|
$this->addColumn('atg_goods', 'uniform_postage', $this->integer(20)->defaultValue(0)->comment('统一邮费')); |
|
|
|
} |
|
|
|
|
|
|
|
public function down() |
|
|
|
{ |
|
|
|
$this->dropColumn('atg_goods', 'is_taking'); |
|
|
|
$this->dropColumn('atg_goods', 'is_express'); |
|
|
|
$this->dropColumn('atg_goods', 'express_type'); |
|
|
|
$this->dropColumn('atg_goods', 'uniform_postage'); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |