Skip to content

Commit

Permalink
πŸ“ Fix make_new_version_of to is_new_version_of (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Aug 11, 2023
1 parent 2896186 commit cc2e998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/faq/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,18 @@ 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.

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!

0 comments on commit cc2e998

Please sign in to comment.