code: public final function install($con, $kernel = 0) {
  		if ($con->select('id')->from('{module}')->where(['name' => $this->namespace])->exist('id')) {
  			return true;
  		}
  		$rst = $this->upgrade($con, $this->currentVersion);
  		if ($rst) {
  			$data['name']        = $this->namespace;
  			$data['version']     = $this->currentVersion;
  			$data['create_time'] = $data['update_time'] = time();
  			$data['kernel']      = $kernel;
  			$rst                 = $con->insert($data)->into('{module}')->exec(true);
  		}
  
  		return $rst;
  	}
docs: 安装.
  
  @param DatabaseConnection $con
  @param int                $kernel 1代表安装的是内核模块.
  
  @return bool