Skip to contents

This function generates the file path to the SQL upgrade script based on the current version index, available database versions, and package name.

Usage

generate_upgrade_script_path(current_version_idx, db_versions, pkgname)

Arguments

current_version_idx

Index of the current database version.

db_versions

A vector of available database versions.

pkgname

Name of the package where the SQL scripts are located.

Value

A string representing the file path to the SQL upgrade script.