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: add_bk_port_enable_property.go
    path of file: ./repos/bk-cmdb/src/scene_server/admin_server/upgrader/history/y3.7.202002231026
    
    the code of the file until where you have to start completion: // Package y3_7_202002231026 TODO
/*
 * Tencent is pleased to support the open source community by making 蓝鲸 available.
 * Copyright (C) 2017-2018 THL A29 
    
func addProcTemplatePortEnableProperty(ctx context.Context, db dal.RDB, conf *upgrader.Config) error {
	docPrefix := "property." + common.BKProcPortEnable
	doc := map[string]interface{}{
		docPrefix + ".value":            true,
		docPrefix + ".as_default_value": true,
	}

	updateCond := map[string]interface{}{
		common.BKDBOR: []interface{}{
			// upgrade version
			map[string]interface{}{docPrefix: map[string]interface{}{common.BKDBExists: false}},
			// new install cmdb
			map[string]interface{}{docPrefix + ".as_default_value": nil},
		},
	}

	if err := db.Table(common.BKTableNameProcessTemplate).Update(ctx, updateCond, doc); err != nil {
		blog.ErrorJSON("add process template proerpty id:%v. db operator error. condition:%s, doc:%s, err:%s", common.BKProcPortEnable, updateCond, doc, err.Error())
		return fmt.Errorf("dd process template  proerpty id:%v, db operator error. err:%s", common.BKProcPortEnable, err.Error())
	}

	return nil
}