Man pages sections > man3 > DBIx::Class::DeploymentHandler::VersionStorage::Deprecated

DBIx::Class::DeploymentHandler::VersionStorage::Deprecated - (DEPRECATED) Use

DBIx::Class::DeploymentHandler::VersionStorage::Deprecated(3pm) User Contributed Perl Documentation DBIx::Class::DeploymentHandler::VersionStorage::Deprecated(3pm)


DBIx::Class::DeploymentHandler::VersionStorage::Deprecated - (DEPRECATED) Use this if you are stuck in the past


I begrudgingly made this module (and other related modules) to keep porting from DBIx::Class::Schema::Versioned relatively simple. I will make changes to ensure that it works with output from DBIx::Class::Schema::Versioned etc, but I will not add any new features to it.
Once I hit major version 1 usage of this module will emit a warning. On version 2 it will be removed entirely.


Here's how to convert from that crufty old Deprecated VersionStorage to a shiny new Standard VersionStorage:
 my $s  = My::Schema->connect(...);
 my $dh = DeploymentHandler({
   schema => $s,
 my @versions = $s->{vschema}->resultset('Table')->search(undef, {
   order_by => 'installed',
 $dh->version_storage->add_database_vesion({ version => $_ })
   for @versions;


This class is an implementation of DBIx::Class::DeploymentHandler::HandlesVersionStorage. Pretty much all the documentation is there.


Arthur Axel "fREW" Schmidt <> This software is copyright (c) 2017 by Arthur Axel "fREW" Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2017-10-29 perl v5.26.0