X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FDeployMethod%2FSQL%2FTranslator%2FDeprecated.pm;h=3fcdb57a9f5046ef1d51425544bc9894f23afdf4;hp=813013ce4d5113a0683fe8bff5e2e0b1aa440408;hb=97aa9a748e07c9e5875d56bd7d6554e481911c5d;hpb=09bc35e3b405fbac725a45739e15cf30543d7f77 diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm index 813013c..3fcdb57 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm @@ -1,19 +1,20 @@ package DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated; + use Moose; # ABSTRACT: (DEPRECATED) Use this if you are stuck in the past -use Method::Signatures::Simple; - use File::Spec::Functions; -extends 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator', +extends 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator'; -method _ddl_schema_consume_filenames($type, $version) { +sub _ddl_schema_consume_filenames { + my ($self, $type, $version) = @_; return [$self->_ddl_schema_produce_filename($type, $version)] } -method _ddl_schema_produce_filename($type, $version) { +sub _ddl_schema_produce_filename { + my ($self, $type, $version) = @_; my $filename = ref $self->schema; $filename =~ s/::/-/g; @@ -24,7 +25,8 @@ method _ddl_schema_produce_filename($type, $version) { return $filename; } -method _ddl_schema_up_produce_filename($type, $versions, $dir) { +sub _ddl_schema_up_produce_filename { + my ($self, $type, $versions, $dir) = @_; my $filename = ref $self->schema; $filename =~ s/::/-/g; @@ -35,7 +37,8 @@ method _ddl_schema_up_produce_filename($type, $versions, $dir) { return $filename; } -method _ddl_schema_up_consume_filenames($type, $versions) { +sub _ddl_schema_up_consume_filenames { + my ($self, $type, $versions) = @_; return [$self->_ddl_schema_up_produce_filename($type, $versions)] } @@ -104,3 +107,8 @@ L =back +=head1 SEE ALSO + +This class is an implementation of +L. Pretty much all the +documentation is there.