DBIx::C...recated(3)

πŸ’– DBIx::C...recated(3) πŸ’–

ok so bestie, you've stumbled into DBIx::Class::DeploymentHandler::VersionStorage::Deprecated β€” a page from the User Contributed Perl Documentation collection. Grab a snack, this one's a little sad but we're gonna get through it together 🫢


✨ NAME ✨

DBIx::Class::DeploymentHandler::VersionStorage::Deprecated β€” (DEPRECATED) use this if you are stuck in the past πŸ•°οΈ


πŸ’€ DEPRECATED πŸ’€

ngl, the author made this module (and a bunch of its sibling modules) begrudgingly 😭 β€” the whole point was to keep porting from DBIx::Class::Schema::Versioned relatively simple. He'll make changes so it keeps working with output from DBIx::Class::Schema::Versioned and friends, but he is not adding any new features to it. That's the deal. Periodt.

🚨 heads up bestie: once this hits major version 1, using this module will emit a warning. On version 2 it gets removed entirely. So like... plan your glow-up accordingly πŸ’…

😭 THIS SUCKS 😭

okay but here's the tea β€” this is literally how you convert from that crufty old Deprecated VersionStorage to a shiny new Standard VersionStorage. Copy it, slay it, move on ✨

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;
🫢 lowkey the main character energy here is you, migrating off a deprecated module. iconic behavior, no cap.

πŸ‘€ SEE ALSO πŸ‘€

This class is an implementation of DBIx::Class::DeploymentHandler::HandlesVersionStorage. Pretty much all the documentation lives over there, so go read that one β€” fr fr, it's where the actual info is at πŸ“š


🧚 AUTHOR 🧚

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


This software is copyright (c) 2025 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.


and that's the whole page, bestie πŸ’œ this lil' doc came from perl v5.42.0, dated 2026-01-17 β€” stay safe out there and go migrate already πŸ¦‹βœ¨

πŸ“¦ where this page comes from