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 .sql file for migrations
  • It has no .pl support

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" in DBIx::Class::DeployMethod::SQL::Translator
  • "_ddl_schema_produce_filename" in DBIx::Class::DeployMethod::SQL::Translator
  • "_ddl_schema_up_produce_filename" in DBIx::Class::DeployMethod::SQL::Translator
  • "_ddl_schema_up_consume_filenames" in DBIx::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 πŸ’…


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 from perl v5.42.0, dated 2026-01-17, and the manual name is DBIx::C...precated(3) β€” yes it's abbreviated like that, don't come for me. Mwah! πŸ’–πŸ¦‹πŸŒΈ
πŸ“¦ where this page comes from