GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::CLASS::DEPLOYMENTHANDLER::DEPLOYMETHOD::SQL::TRANSLATOR::DEPRECATED (3)

.ds Aq ’

NAME

DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated - (DEPRECATED) Use this if you are stuck in the past

CONTENTS

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

o _ddl_schema_consume_filenames in DBIx::Class::DeployMethod::SQL::Translator
o _ddl_schema_produce_filename in DBIx::Class::DeployMethod::SQL::Translator
o _ddl_schema_up_produce_filename in DBIx::Class::DeployMethod::SQL::Translator
o _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) 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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DBIX::CLASS::DEPLOYMENTHANDLER::DEPLOYMETHOD::SQL::TRANSLATOR::DEPRECATED (3) 2015-06-14

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.