table('goods'); $table ->addColumn('is_hot','integer',['limit'=>MysqlAdapter::INT_TINY,'after'=>'price','signed'=>false,'null'=>false,'default'=>1,'comment'=>'是否热门,0=是,1=否']) ->addColumn('is_recommend','integer',['limit'=>MysqlAdapter::INT_TINY,'after'=>'price','signed'=>false,'null'=>false,'default'=>1,'comment'=>'是否推荐,0=是,1=否']) ->update(); } }