Skip to main content

system.kanoa.config.updateVersionInfo(versionInfo, userId)

Updates version info. If the record always exists, it will update it.


Parameters

versionInfo Dictionary

- elementStringSpecific to type, for database, this could be the schema. Can be None
- name:StringName of the database, project or tag
- typeStringi.e. 'database', 'project', 'tag'
- versionNumberStringVersion number

userId Integer: Id of user executing the function


Returns

appVersionId Integer


Example


appVersionId = system.kanoa.config.updateVersionInfo(versionInfo, userId)