Drop dependency on aliased (only used in 1 file)
authorVincent Tondellier <tonton+hg@team1664.org>
Thu, 28 Aug 2014 00:54:41 +0200
changeset 49 c088af64f31f
parent 48 d6c5b0633fe2
child 50 2916ea7c21aa
Drop dependency on aliased (only used in 1 file)
lib/CrashTest/Commands/db.pm
--- a/lib/CrashTest/Commands/db.pm	Thu Aug 28 00:06:24 2014 +0200
+++ b/lib/CrashTest/Commands/db.pm	Thu Aug 28 00:54:41 2014 +0200
@@ -15,7 +15,7 @@
 use Mojo::Base 'Mojolicious::Command';
 use v5.12;
 
-use aliased 'DBIx::Class::DeploymentHandler' => 'DH';
+use DBIx::Class::DeploymentHandler;
 use CrashTest::Storage::Sql::Schema;
 
 # Short description
@@ -43,14 +43,14 @@
 
     if($args[0] eq "prepare") {
         $dhargs->{force_overwrite} = 1;
-        my $dh = DH->new($dhargs);
+        my $dh = DBIx::Class::DeploymentHandler->new($dhargs);
         $dh->prepare_install;
 #        $dh->prepare_upgrade;
     } elsif($args[0] eq "create") {
-        my $dh = DH->new($dhargs);
+        my $dh = DBIx::Class::DeploymentHandler->new($dhargs);
         $dh->install;
 #    } elsif($args[0] eq "upgrade") {
-#        my $dh = DH->new($dhargs);
+#        my $dh = DBIx::Class::DeploymentHandler->new($dhargs);
 #        $dh->upgrade;
     } else {
         say "Invalid arguments";