-
-
25 Sep 2019 17:33:53 UTC
- Distribution: DBIx-Class-DeploymentHandler
- Module version: 0.002233
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (7)
- Testers (875 / 2 / 5)
- Kwalitee
Bus factor: 3- 81.95% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (77.07KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Arthur Axel "fREW" Schmidt
- Dependencies
- Carp
- Carp::Clan
- Context::Preserve
- DBIx::Class
- Log::Contextual
- Module::Runtime
- Moose
- MooseX::Role::Parameterized
- Path::Class
- SQL::SplitStatement
- SQL::Translator
- Sub::Exporter::Progressive
- Text::Brew
- Try::Tiny
- YAML
- autodie
- namespace::autoclean
- parent
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Deprecated.
The maintainer of this module has indicated that the module is deprecated and no longer suitable for use.NAME
DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated - (DEPRECATED) Use this if you are stuck in the past
DESCRIPTION
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.
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
Yeah, this old Deprecated thing is a drag. 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:
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
"_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.
AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2019 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.
Module Install Instructions
To install DBIx::Class::DeploymentHandler, copy and paste the appropriate command in to your terminal.
cpanm DBIx::Class::DeploymentHandler
perl -MCPAN -e shell install DBIx::Class::DeploymentHandler
For more information on module installation, please visit the detailed CPAN module installation guide.