how can i create an initial version for an already existing model entry?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
The issue names no implementation file or test. Start by locating the package entry point for model version creation and inspect how versions are produced during updates. Done means existing model values can be recorded as an initial version without updating the model, with tests covering that behavior.
Written by the indexing model from the issue text.
Description
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().
- Dominant language
- PHP
- Stars
- 787
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mpociot/versionable
-
Difficulty 1/5 Under an hour Newbie friendliness 58/100
mpociot/versionable#110 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
mpociot/versionable#102 · 6 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
mpociot/versionable#101 ·
-
Setting the $reason Open
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
mpociot/versionable#96 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mpociot/versionable#94 · 5 comments ·
All issues in mpociot/versionable
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100