|
|
@ -0,0 +1,32 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
use yii\db\Migration; |
|
|
|
|
|
|
|
/** |
|
|
|
* Class m191205_092426_drop_columns_province_city_area_basic_price_basic_count_extra_count_extra_price_in_table_ats_express_template |
|
|
|
*/ |
|
|
|
class m191205_092426_drop_columns_province_city_area_basic_price_basic_count_extra_count_extra_price_in_table_ats_express_template extends Migration |
|
|
|
{ |
|
|
|
public function up() |
|
|
|
{ |
|
|
|
$this->dropColumn('ats_express_template', 'province'); |
|
|
|
$this->dropColumn('ats_express_template', 'city'); |
|
|
|
$this->dropColumn('ats_express_template', 'area'); |
|
|
|
$this->dropColumn('ats_express_template', 'extra_price'); |
|
|
|
$this->dropColumn('ats_express_template', 'basic_price'); |
|
|
|
$this->dropColumn('ats_express_template', 'basic_count'); |
|
|
|
$this->dropColumn('ats_express_template', 'extra_count'); |
|
|
|
} |
|
|
|
|
|
|
|
public function down() |
|
|
|
{ |
|
|
|
$this->addColumn('ats_express_template', 'province', $this->text()->comment('省份')); |
|
|
|
$this->addColumn('ats_express_template', 'city', $this->text()->comment('城市')); |
|
|
|
$this->addColumn('ats_express_template', 'area', $this->text()->comment('区域')); |
|
|
|
$this->addColumn('ats_express_template', 'extra_price', $this->integer(20)->defaultValue(null)->comment('续重运费')); |
|
|
|
$this->addColumn('ats_express_template', 'basic_price', $this->integer(20)->defaultValue(null)->comment('基本运费')); |
|
|
|
$this->addColumn('ats_express_template', 'basic_count', $this->integer(20)->defaultValue(null)->comment('基本数量')); |
|
|
|
$this->addColumn('ats_express_template', 'extra_count', $this->integer(20)->defaultValue(null)->comment('续重数量')); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |