MojoMojo::Schema::Result::PageVersion - Versioned page metadata
This table implements versioning of page metadata (not content, see MojoMojo::Schema::Result::Content for that). It has a composite primary key (page, version).
(page, version)
When renaming a page, a new version is created in this table, with version set to 1 + the maximum version for that page. The status of the new page_version is set to "released", its release_date is set to DateTime->now, while the old page_version's status is set to 'removed' and its remove_date is set to DateTime->now.
version
page
status
page_version
release_date
DateTime->now
remove_date
document the relationships
in order to support proper rollback, meaning creating a new version for the rollback operation itself, a content_version field needs to be added.
content_version
created is apparently unused: set to 0 for pages populated when creating the database, and NULL for all normal pages.
created
Return the PageVersion object having the latest version of this page.
Marcus Ramberg <mramberg@cpan.org>
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install MojoMojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoMojo
CPAN shell
perl -MCPAN -e shell install MojoMojo
For more information on module installation, please visit the detailed CPAN module installation guide.