1 package DBIx::Class::DeploymentHandler::VersionStorage::Standard::Component;
7 use DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult;
9 sub set_us_up_the_bomb {
12 $self->register_class(
13 __VERSION => 'DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult'
19 $self->next::method(@_);
21 $self->set_us_up_the_bomb;
23 my $args = $_[3] || {};
25 unless ( $args->{ignore_version} || $ENV{DBIC_NO_VERSION_CHECK}) {
26 my $versions = $self->resultset('__VERSION');
28 if (!$versions->is_installed) {
29 carp "Your DB is currently unversioned. Please call upgrade on your schema to sync the DB.\n";
30 } elsif ($versions->db_version ne $self->schema_version) {
31 carp 'Versions out of sync. This is ' . $self->schema_version .
32 ', your database contains version ' . $versions->db_version . ", please call upgrade on your Schema.\n";