pub async fn create_database_version(
db: &Database,
target_db_version: DatabaseVersion,
module_instance_id: Option<ModuleInstanceId>,
kind: String,
is_new_db: bool,
) -> Result<(), Error>
Expand description
Creates the DatabaseVersion
inside the database if it does not exist. If
necessary, this function will migrate the legacy database version to the
expected DatabaseVersionKey
.