Skip to main content

system.kanoa.config.updateVersionInfo

This function requires KanoaCore module

Description

This function updates version information such as database, project, or tag version number.

Syntax

updateVersionInfo(versionInfo, userId)
  • Parameters:
      versionInfo: dict - Information about the version including type, name, element, and versionNumber.
            'type' (str): Type of version information ('database', 'project', 'tag')
            'name' (str): Name of the database, project, or tag
            'element' (str): Specific to the type, for database, this could be the schema, can be null
            'versionNumber' (str): Version number
          userId: int - User ID
    • Returns: int - App Version ID
    • Code Example

      # Example Usage:
      app_version_id = system.kanoa.config.updateVersionInfo(versionInfo, userId)