| 1 | package DBIx::Class::DeploymentHandler::VersionStorage::WithSchema::VersionResultSet; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use parent 'DBIx::Class::ResultSet'; | ||
| 7 | |||
| 8 | use Try::Tiny; | ||
| 9 | |||
| 10 | sub version_storage_is_installed { | ||
| 11 | my $self = shift; | ||
| 12 | try { $self->count; 1 } catch { undef } | ||
| 13 | } | ||
| 14 | |||
| 15 | 1; |