|
|
@ -0,0 +1,22 @@ |
|
|
|
<?php |
|
|
|
|
|
|
|
use yii\db\Migration; |
|
|
|
|
|
|
|
/** |
|
|
|
* Class m191211_060934_update_column_limit_count_in_table_atg_goods |
|
|
|
*/ |
|
|
|
class m191211_060934_update_column_limit_count_in_table_atg_goods extends Migration |
|
|
|
{ |
|
|
|
public function up() |
|
|
|
{ |
|
|
|
$this->dropColumn('atg_goods', 'limit_count'); |
|
|
|
$this->addColumn('atg_goods', 'limit_count', $this->integer(11)->defaultValue("0")->comment("限购数量")); |
|
|
|
} |
|
|
|
|
|
|
|
public function down() |
|
|
|
{ |
|
|
|
$this->dropColumn('atg_goods', 'limit_count'); |
|
|
|
$this->addColumn('atg_goods', 'limit_count', $this->integer(11)->defaultValue(null)->comment("限购数量")); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |