1 package DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResultSet;
3 # ABSTRACT: Predefined searches to find what you want from the version storage
8 use parent 'DBIx::Class::ResultSet';
12 sub version_storage_is_installed {
14 try { $self->next; 1 } catch { undef }
17 sub database_version {
19 $self->search(undef, {
20 order_by => { -desc => 'id' },
22 })->get_column('version')->next;
27 # vim: ts=2 sw=2 expandtab
31 =method version_storage_is_installed
33 True if (!!!) the version storage has been installed
35 =method database_version
37 The version of the database