MojoMojo::Schema::Result::PageVersion(3pm) | User Contributed Perl Documentation | MojoMojo::Schema::Result::PageVersion(3pm) |
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)".
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".
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.
2018-01-13 | perl v5.26.1 |