You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pkg.go
    path of file: ./repos/bk-cmdb/src/scene_server/admin_server/upgrader/y3.10.202206081408
    
    the code of the file until where you have to start completion: /*
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云 - 配置平台 (BlueKing - Configuration System) available.
 * Copyright (C) 2017 THL A29 Limited,
 * a Tencent company. All rights reserved.
 * Licensed under the MIT License (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a cop
    
func upgrade(ctx context.Context, db dal.RDB, conf *upgrader.Config) (err error) {
	blog.Infof("start execute y3.10.202206081408, init template attribute")

	if err = initTemplateAttribute(ctx, db, "cc_SetTemplateAttr", common.BKSetTemplateIDField); err != nil {
		blog.Errorf("upgrade y3.10.202206081408 init set template attribute failed, err: %v", err)
		return err
	}

	if err = initTemplateAttribute(ctx, db, "cc_ServiceTemplateAttr", common.BKServiceTemplateIDField); err != nil {
		blog.Errorf("upgrade y3.10.202206081408 init service template attribute failed, err: %v", err)
		return err
	}

	blog.Infof("upgrade y3.10.202206081408 init template attribute success")
	return nil
}