(General) Content versioning #65
Labels
No Label
bug
duplicate
enhancement
feature
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: DebaucheryLibrarian/traxxx#65
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is essentially a more detailed overview of the prerequisite for #47.
Content needs versioning, so users can submit and update content. Currently, one release is just the current version.
I think there need to be 2 tables:
OldReleases
) becomes the table for all versions of all releases, let's call itReleaseVersions
User
table)ReleaseVersionHistory
Every item in
OldReleases
is migrated to:ReleaseVersions
) with a hard-coded "traxxx" user as authorRun down of typical actions
ReleaseVersions
) into a new version (ReleaseVersions
)ReleaseVersionHistory
) to append to the history, with creation date = NOW()release_id
author_id
release_id
DESC LIMIT 1, join on the history entry'sversion_id
(foreign key)All this stuff would need to be done for Movies and Actors (and Studios?) too, so you would have
Important
A version's author should be NULLABLE. If a user account is deleted, the version shouldn't vanish, the author just becomes ???.
Diagram