|
|
@ -0,0 +1,22 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
use yii\db\Migration; |
|
|
|
|
|
|
|
/** |
|
|
|
* Class m191125_012449_update_column_icon_type_in_antgoods_category |
|
|
|
*/ |
|
|
|
class m191125_012449_update_column_icon_type_in_antgoods_category extends Migration |
|
|
|
{ |
|
|
|
public function up() |
|
|
|
{ |
|
|
|
$this->dropColumn('antgoods_category', 'icon_type'); |
|
|
|
$this->addColumn('antgoods_category', 'icon_type', $this->tinyInteger(1)->defaultValue(1)->comment('图标类型')); |
|
|
|
} |
|
|
|
|
|
|
|
public function down() |
|
|
|
{ |
|
|
|
$this->dropColumn('antgoods_category', 'icon_type'); |
|
|
|
$this->addColumn('antgoods_category', 'icon_type', $this->tinyInteger(1)->defaultValue(null)->comment('图标类型')); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
xxxxxxxxxx