-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can i create an initial version for an already existing model entry? #99
Comments
Hi, @iateadonut! That feature doesn't exist at the moment. It could be implemented — maybe $mode->createVersion(), as you said — as a public method of the I'm open to pull requests for this, but I have limited bandwidth to maintain this package. A quick-and-dirty solution would be making a minimal change to one of the versionable fields in your models and saving to force the package to save that as the first version. Kindly, Nono |
hi, thanks for responding so quickly. i wrote these functions in an extended trait - take a quick look and let me know if you see any problems and if you'd like me to make a PR for this:
|
created this pull request: #100 |
The package only creates a version on update, and that version is equal to the current values in the database.
How can I create a version without updating so that if I'm adding this package to an already existing application, I can keep the current entries as versions?
Something like $model->createCurrentVersion().
The text was updated successfully, but these errors were encountered: