table('construction'); $table->addColumn('status', 'integer', ['limit'=> 10, 'comment'=> '状态0待审核,1审核通过 ,2审核不通过', 'default'=> 1]) ->addColumn('type', 'integer', ['limit'=> 10, 'comment'=> '上传类型,0后台上传,1小程序上传', 'default'=> 0]) ->update(); $info6 = \app\model\Permission::where([['auth_name', '=', '在施工地']])->find(); $info6->relation = $info6->relation . ',construction/approve'; $info6->save(); } }