From cc2e9984eca05d7516255eff7133e0a3606f091f Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Fri, 11 Aug 2023 22:52:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20make=5Fnew=5Fversion=5Fof?= =?UTF-8?q?=20to=20is=5Fnew=5Fversion=5Fof=20(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/faq/storage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/faq/storage.md b/docs/faq/storage.md index 6a90d49f..3d426bcc 100644 --- a/docs/faq/storage.md +++ b/docs/faq/storage.md @@ -100,10 +100,10 @@ file.save() # save the change to the database ## How do I version a file? -You use the `make_new_version_of` parameter: +You use the `is_new_version_of` parameter: ``` -new_file = ln.File(df, make_new_version_of=old_file) +new_file = ln.File(df, is_new_version_of=old_file) ``` Then, `new_file` automatically has {attr}`~lamindb.File.version` set, incrementing the version number by one. @@ -111,7 +111,7 @@ Then, `new_file` automatically has {attr}`~lamindb.File.version` set, incrementi You can also pass a custom version: ``` -new_file = ln.File(df, version="1.1", make_new_version_of=old_file) +new_file = ln.File(df, version="1.1", is_new_version_of=old_file) ``` It doesn't matter which old version of the file you use, any old version is good!