DBIx::C...precated(3)
π NAME π
DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated β bestie, it's (DEPRECATED), use this if you are stuck in the past π°οΈβ¨
Like, this is the User Contributed Perl Documentation page for it, okay? So sit down, grab a boba, and let me tell you about this little relic π
π¦ DESCRIPTION π¦
Okay so literally all this module does is override a few parts of DBIx::Class::DeployMethd::SQL::Translator so that the files generated with DBIx::Class::Schema::Versioned will work with this out of the box. That's it. That's the whole job. No cap. πββοΈ
π DEPRECATED π
So likeβ¦ I begrudgingly made this module (and other related modules, sigh) to keep porting from DBIx::Class::Schema::Versioned relatively simple. Like, I did it for you. Out of the kindness of my heart. π«Ά
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. It's giving maintenance mode, fr fr.
Once I hit major version 1, usage of this module will emit a warning. On version 2 it will be removed entirely. π So, like, plan accordingly bestie.
π THIS SUCKS π
Yeah, this old Deprecated thing is a drag. Not me defending it, because I literally can't:
- It can't do downgrades π
- It can only use a single
.sqlfile for migrations - It has no
.plsupport
You should totally switch! Here's how, queen π:
my $init_part = ref $schema;
$init_part =~ s/::/-/g;
opendir my $dh, 'sql';
for (readdir $dh) {
if (/\Q$init_part\E-(.*)-(.*)(?:-(.*))?/) {
if (defined $3) {
cp $_, $dh->deploy_method->_ddl_schema_up_produce_filename($3, [$1, $2]);
} else {
cp $_, $dh->deploy_method->_ddl_schema_produce_filename($2, $1);
}
}
}
β¨ OVERRIDDEN METHODS β¨
Here's the tea on what got overridden, one bullet each, no skipping π
"_ddl_schema_consume_filenames"inDBIx::Class::DeployMethod::SQL::Translator"_ddl_schema_produce_filename"inDBIx::Class::DeployMethod::SQL::Translator"_ddl_schema_up_produce_filename"inDBIx::Class::DeployMethod::SQL::Translator"_ddl_schema_up_consume_filenames"inDBIx::Class::DeployMethod::SQL::Translator
π SEE ALSO π
This class is an implementation of DBIx::Class::DeploymentHandler::HandlesDeploy. Pretty much all the documentation is there, so like, go read that. iykyk ππ
πΈ AUTHOR πΈ
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> β icon behavior, honestly π
π COPYRIGHT AND LICENSE π
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. Slay, legally speaking βοΈβ¨
Okay bye bestie!! This page is fromperl v5.42.0, dated2026-01-17, and the manual name isDBIx::C...precated(3)β yes it's abbreviated like that, don't come for me. Mwah! ππ¦πΈ
π¦ where this page comes from
- fedora 44: perl-DBIx-Class-DeploymentHandler 0.002235-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms