1 package DBIx::Class::DepolymentHandler::Component;
8 $self->next::method(@_);
12 return if $args->{ignore_version} || $ENV{DBIC_NO_VERSION_CHECK};
14 my $versions = $self->resultset('VersionResult');
16 unless($versions->is_installed) {
17 carp "Your DB is currently unversioned. Please call upgrade on your schema to sync the DB.\n";
21 my $pversion = $versions->db_version;
23 return 1 if $pversion eq $self->schema_version;
25 carp "Versions out of sync. This is " . $self->schema_version .
26 ", your database contains version $pversion, please call upgrade on your Schema.\n";