Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DBIx::Class::DeplDBIx:UsersContributednPerldDocumentationtorage::Deprecated(3)

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

DEPRECATED
       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.

THIS SUCKS
       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,
	});

	$dh->prepare_version_storage_install;
	$dh->install_version_storage;

	my @versions = $s->{vschema}->resultset('Table')->search(undef,	{
	  order_by => 'installed',
	})->get_column('version')->all;

	$dh->version_storage->add_database_vesion({ version => $_ })
	  for @versions;

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

AUTHOR
       Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>

COPYRIGHT AND LICENSE
       This software is	copyright (c) 2015 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.

perl v5.24.1	 DBIx::Class::DeploymentHandler::VersionStorage::Deprecated(3)

NAME | DEPRECATED | THIS SUCKS | SEE ALSO | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=DBIx::Class::DeploymentHandler::VersionStorage::Deprecated&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help