table('goods'); $table ->addColumn('is_new','integer',['limit'=>MysqlAdapter::INT_TINY,'after'=>'price','signed'=>false,'null'=>false,'default'=>1,'comment'=>'是否新品,0=是,1=否']) ->addColumn('is_discount','integer',['limit'=>MysqlAdapter::INT_TINY,'after'=>'price','signed'=>false,'null'=>false,'default'=>1,'comment'=>'折扣商品,0=是,1=否']) ->update(); } }